diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-01 21:56:03 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-01 21:56:03 -0500 |
| commit | 894dd858c380e5ac8bcd882294f044c325ef379e (patch) | |
| tree | b275ce664f6cf48272d62835bd3010c0e71bc592 /bot.js | |
| parent | 56573af6e6f5a839536483ea51ad1fc163f33458 (diff) | |
| download | DLAP-894dd858c380e5ac8bcd882294f044c325ef379e.tar.gz DLAP-894dd858c380e5ac8bcd882294f044c325ef379e.tar.bz2 DLAP-894dd858c380e5ac8bcd882294f044c325ef379e.zip | |
Modularized audio backend
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
