aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-28 15:28:49 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-28 15:28:49 -0400
commitd052c0ea12e6a14337789fc73908f42cd0fdcf76 (patch)
tree91c70f0ce435a746dd37427fc01b56b323715d04 /aleebot.js
parent0d216be080226b34c66d133f6191fd3cdca6eb8d (diff)
downloadAleeBot-APF-d052c0ea12e6a14337789fc73908f42cd0fdcf76.tar.gz
AleeBot-APF-d052c0ea12e6a14337789fc73908f42cd0fdcf76.tar.bz2
AleeBot-APF-d052c0ea12e6a14337789fc73908f42cd0fdcf76.zip
Replaced abtoken.json with .env
Diffstat (limited to 'aleebot.js')
-rwxr-xr-xaleebot.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/aleebot.js b/aleebot.js
index 0e42392..7460daa 100755
--- a/aleebot.js
+++ b/aleebot.js
@@ -11,7 +11,7 @@
* *************************************/
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
-const config = require('./abtoken.json');
+require('dotenv').config();
var prefix = "ab:";
@@ -181,7 +181,7 @@ client.on('messageCreate', message => {
});
- client.login (config.token).catch(function() {
+ client.login (process.env.TOKEN).catch(function() {
console.log("[ERROR] Login failed.");
});