Skip to content

Commit 1924c75

Browse files
committed
feat: add .env file
1 parent 736b870 commit 1924c75

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BOT_TOKEN=YOUR_BOT_TOKEN_HERE

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"@discordx/importer": "^1.1.10",
1717
"@discordx/pagination": "^3.2.0",
1818
"discord.js": "^14.4.0",
19-
"discordx": "^11.3.0"
19+
"discordx": "^11.3.0",
20+
"dotenv": "^16.0.2"
2021
},
2122
"devDependencies": {
2223
"@types/node": "^18.7.18",

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import type { Interaction, Message } from "discord.js";
33
import { IntentsBitField } from "discord.js";
44
import { Client } from "discordx";
55

6+
import dotenv from "dotenv";
7+
8+
dotenv.config();
9+
610
export const bot = new Client({
711
// To use only guild command
812
// botGuilds: [(client) => client.guilds.cache.map((guild) => guild.id)],

0 commit comments

Comments
 (0)