From c576ed4e454fe6b4974e7ad873670e3adc9d0a96 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 2 Dec 2022 22:05:20 -0500 Subject: Fixes to various things --- bot.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bot.js') 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' -- cgit v1.2.3