Skip to content

Commit c241a93

Browse files
committed
chore: docs
1 parent 3d916dc commit c241a93

File tree

4 files changed

+35
-134
lines changed

4 files changed

+35
-134
lines changed

README.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
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

config.mock.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"BOT_TOKEN": "YOUR_BOT_TOKEN"
3+
}

package-lock.json

-107
This file was deleted.

package.json

-26
This file was deleted.

0 commit comments

Comments
 (0)