aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-12-02 22:05:20 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-12-02 22:05:20 -0500
commitc576ed4e454fe6b4974e7ad873670e3adc9d0a96 (patch)
treeae6f06f8f21f78d5023019b64772f484f5377fb7 /bot.js
parente0fe64b06c0eb8b92578ae1bf5a166f8d633c9b3 (diff)
downloadDLAP-c576ed4e454fe6b4974e7ad873670e3adc9d0a96.tar.gz
DLAP-c576ed4e454fe6b4974e7ad873670e3adc9d0a96.tar.bz2
DLAP-c576ed4e454fe6b4974e7ad873670e3adc9d0a96.zip
Fixes to various things
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/bot.js b/bot.js
index 988ebb3..c53d40f 100644
--- a/bot.js
+++ b/bot.js
@@ -22,8 +22,7 @@ import { Client, GatewayIntentBits, EmbedBuilder, Collection, version, Interacti
import { voiceInit } from './backend/VoiceInitialization.js';
import { readdirSync, readFileSync } from 'node:fs';
// import config from './config.json' assert { type: 'json' } Not supported by ESLint yet
-const { token, statusChannel, voiceChannel, shuffle } = JSON.parse(readFileSync('./config.json', 'utf-8'));
-
+const { token, statusChannel, voiceChannel, shuffle, presenceActivity } = JSON.parse(readFileSync('./config.json', 'utf-8'));
const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] });
bot.login(token);
@@ -49,12 +48,12 @@ bot.once('ready', async() => {
console.log(`Running on Discord.JS ${version}`);
console.log(`Voice Channel: ${voiceChannel}`);
console.log(`Status Channel: ${statusChannel}`);
- console.log(`Shuffle enabled: ${shuffle}`);
+ console.log(`Shuffle Enabled: ${shuffle}`);
// Set bots' presence
bot.user.setPresence({
activities: [{
- name: 'some beats',
+ name: presenceActivity,
type: 'LISTENING'
}],
status: 'online'