File tree 4 files changed +35
-134
lines changed
4 files changed +35
-134
lines changed Original file line number Diff line number Diff line change 1
- # discord-bot
1
+ # discord-bot
2
+
3
+ ## Quick start
4
+
5
+ > Go to Discord Apps Dashboard to create your new application or bot: https://discord.com/developers/applications/
6
+
7
+ 1 . Create a ` New Application `
8
+ 2 . Setup an app name and click on ` Create `
9
+ 3 . Go to ` Bot ` settings and add a new one (here you can find the ` bot token ` )
10
+ 4 . Go to ` OAuth2 ` set the stope to ` bot `
11
+ 5 . Set the bot permissions to ` Administrator `
12
+ 6 . Copy the scope invitation link and paste on a new tab. Then invite the bot to your server
13
+
14
+ ## Before starting the project
15
+
16
+ Run the following command:
17
+
18
+ ``` sh
19
+ npm init # to setup your package
20
+ npm i discord.js # to install a Discord package and interact with their API
21
+ cp config.mock.json config.json # to setup the your private bot token
22
+ ```
23
+
24
+ Then update the ` BOT_TOKEN ` with your real one in the ` config.js ` file.
25
+
26
+ ``` json
27
+ {
28
+ "BOT_TOKEN" : " YOUR_BOT_TOKEN_HERE"
29
+ }
30
+ ```
31
+
32
+ > You can reveal your private bot token in the ` Bot ` dashboard settings
Original file line number Diff line number Diff line change
1
+ {
2
+ "BOT_TOKEN" : " YOUR_BOT_TOKEN"
3
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments