diff --git a/Discord-bot-setup.md b/Discord-bot-setup.md index 4805ae6..1f39ce9 100644 --- a/Discord-bot-setup.md +++ b/Discord-bot-setup.md @@ -1,22 +1,43 @@ (based upon https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token) First you need to go to [here](https://discordapp.com/developers/applications/me) and click "New Application" -![Application Screen](http://i.imgur.com/FvgfY2Z.png) -Now give your bot a name and a picture, a description isn't necessary. -![New Application Screen](http://i.imgur.com/MOS7yvH.png) -Click "Create Application". On the next page scroll down until you see "Create a bot user", click that. Also click yes do it. -![Screen you see after creating a new application then scrolling down a little.](http://i.imgur.com/YAzK5ml.png) -![Yes Do It.](http://i.imgur.com/vkF6Rxo.png) -Make sure you're allowing the bot to see the member list, otherwise you'll get an error message similar to `Error obtaining server members: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001}`. -![Server Members Intent](https://i.imgur.com/sBVVIAL.png) -Now you can get your bot's token, by using the "click to reveal button" in the app bot user section. -![New Bot Page](http://i.imgur.com/xhKMUVU.png) -![Token](http://i.imgur.com/QwCmJJM.png) -There's your token! Now its time to invite your bot to your server. Don't worry about your bot being started for this next step. Change the client_id to your Client ID under App Details, then go to this url + +![Application Screen](https://i.imgur.com/6WrvbNe.png) +Now give your bot a name. + +![Create an Application Screen](https://i.imgur.com/PQCa8Kl.png) + +Click "Create". On the next screen you can set a Avatar Icon for your app and description (not necessary). +This is also where you will find your Client ID, more on that later. +![New App Screen](https://i.imgur.com/t3efwt3.png) + +Next, click on Bot on the left hand menu, then click "Add Bot" +![Add Bot](https://i.imgur.com/S00aLUf.png) + +Click "Yes Do It" + +![Yes Do It.](https://i.imgur.com/909uU4S.png) + +On the Bot screen you will get to see your token, you can click "Copy" to put it in your clipboard or "Click to reveal your Token", put this in your config file. +On this Same Screen you can toggle if the bot is public (which will allow others to invite to their servers, this is on by default). +![Bot Screen 1](https://i.imgur.com/sibnz9u.png) + +Make sure to also toggle the "Server Members Intent" option further down under "Privileged Gateway Intents" to allow the bot to see the member list, otherwise you'll get an error message similar to `Error obtaining server members: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001}`. + +Click "Save Changes" +![Server Members Intent](https://i.imgur.com/FIHvhNt.png) + +Now its time to invite your bot to your server. Don't worry about your bot being started for this next step. You can get this under General Information +![Client ID](https://i.imgur.com/xS2IveF.png) + +Change the client_id to your Client ID under App Details, then go to this url ```https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID_HERE&scope=bot&permissions=0``` -![Authorize Bot](http://i.imgur.com/Ggwy0BP.png) Now select your sever, then click authorize. -![Authorized](http://i.imgur.com/4cqNcs1.png) + +![Authorize Bot](https://i.imgur.com/d2pcKIY.png) + +![Authorized](https://i.imgur.com/dae0LKN.png) + That's it! Now you can start your bot and enjoy chatting! \ No newline at end of file