-
-
Save DRIVER-217/62c2da36c8125f762405ed7d18faeaa7 to your computer and use it in GitHub Desktop.
Revisions
-
ianklatzco created this gist
Dec 29, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/bash # update the TOKEN and the CHANNELID, rest is optional # you may need to connect with a websocket the first time you run the bot # use a library like discord.py to do so curl -v \ -H "Authorization: Bot TOKEN" \ -H "User-Agent: myBotThing (http://some.url, v0.1)" \ -H "Content-Type: application/json" \ -X POST \ -d '{"content":"Posting as a bot"}' \ https://discordapp.com/api/channels/CHANNELID/messages