aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot.js b/bot.js
index abb893c..4aa909b 100644
--- a/bot.js
+++ b/bot.js
@@ -19,10 +19,10 @@
*
***************************************************************************/
import { Client, GatewayIntentBits, EmbedBuilder, Collection, version, InteractionType } from 'discord.js';
-import { voiceInit } from './AudioBackend.js';
+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'));
+const { token, statusChannel, voiceChannel, shuffle } = JSON.parse(readFileSync('./config.json', 'utf-8'));
const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] });
bot.login(token);
@@ -31,6 +31,7 @@ bot.login(token);
* TODO: - Custom string support (Basically change what the bot is saying)
* - Non repeat support
* - Modularizing AudioBackend
+ * - Easier to use interface
*/
// Slash Command Handler