From d052c0ea12e6a14337789fc73908f42cd0fdcf76 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 28 Mar 2025 15:28:49 -0400 Subject: Replaced abtoken.json with .env --- aleebot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aleebot.js') 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."); }); -- cgit v1.2.3