From 894dd858c380e5ac8bcd882294f044c325ef379e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 1 Dec 2022 21:56:03 -0500 Subject: Modularized audio backend --- bot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bot.js') 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 -- cgit v1.2.3