Skip to content

Commit 89cc487

Browse files
Create README.md
1 parent e2d6f2b commit 89cc487

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# discord-js-template
2+
This is my template for most of my discord.js bots, feel free to use!
3+
4+
## Setup
5+
Copy the `.env.example` file to `.env`
6+
```bash
7+
cp .env.example .env
8+
```
9+
10+
Open it with your favorite editor, Nano, Vim or Emacs.
11+
12+
Replace the `TOKEN` in the `.env` file with your own Authentication Token given to you by Discord in their portal
13+
Replace the `APPLICATION_ID` in the `.env` file with the application id of the bot.
14+
15+
## DO NOT MAKE THE .env FILE PUBLIC
16+
By default, `.env` is git ignored (meaning it is ignored by git). If you disable this, there can be huge security risks such as
17+
- Hackers being able to use your authentication token and using it for malicious purposes
18+
- Bad in general
19+
20+
If you do not touch the `.gitignore` then you should be fine. But be sure not to remove the `.env` part from the `.gitignore`.

0 commit comments

Comments
 (0)