File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
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 ` .
You can’t perform that action at this time.
0 commit comments