From 6811c868cc4d61fa00f1d06ea4134d82df2e4170 Mon Sep 17 00:00:00 2001 From: Techwizz Date: Mon, 4 Sep 2023 16:06:40 -0600 Subject: [PATCH] Swapped IDs to .env file --- .env | 5 +++++ index.js | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..fc98450 --- /dev/null +++ b/.env @@ -0,0 +1,5 @@ +CLIENT_TOKEN='TOKEN_HERE' +OWNER=' <@DISCORD_ID> ' +MODCHAT='CHANNEL_ID' +BOT_STATUS='Fancy status' +ADMIN_ROLE='ADMIN_ROLE_ID' diff --git a/index.js b/index.js index 00009f0..60fba37 100644 --- a/index.js +++ b/index.js @@ -7,11 +7,11 @@ const { const Tesseract = require('tesseract.js'); const fs = require('fs'); -// Change these to match the user the bot pings "owner" when it deletes a message and which channel it logs messages to "modchat" -const owner = `<@331669618387058688> `; -const modchat = '510189494809526283'; -const botStatus = `reach for the sky and wave hi` // This shows as the bot's status in Discord -const adminRole = `509444712734654464` // So admins can use the !bot command +// Change these in .env to match the user the bot pings "owner" when it deletes a message and which channel it logs messages to "modchat" +const owner = process.env.OWNER; +const modchat = process.env.MODCHAT; +const botStatus = process.env.BOT_STATUS; // This shows as the bot's status in Discord +const adminRole = process.env.ADMIN_ROLE; // So admins can use the !bot command // The list file locations are initalized here const badWordsList = './lists/badwords.txt';