aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/bot.js b/bot.js
index 9944f24..53c5cb1 100644
--- a/bot.js
+++ b/bot.js
@@ -19,10 +19,10 @@
*
***************************************************************************/
import { Client, GatewayIntentBits, EmbedBuilder, Collection, version, InteractionType } from 'discord.js';
-import { voiceInit } from './backend/VoiceInitialization.js';
+import { voiceInit } from './AudioBackend/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, repeat, presenceActivity } = JSON.parse(readFileSync('./config.json', 'utf-8'));
+const { token, statusChannel, voiceChannel, shuffle, repeat, presenceActivity, activityType } = JSON.parse(readFileSync('./config.json', 'utf-8'));
const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] });
bot.login(token);
@@ -34,10 +34,10 @@ bot.login(token);
// Slash Command Handler
bot.commands = new Collection();
-const commandFiles = readdirSync('./commands').filter(file => file.endsWith('.js'));
+const commandFiles = readdirSync('./Commands').filter(file => file.endsWith('.js'));
for (const file of commandFiles) {
- const { default: command } = await import(`./commands/${file}`);
+ const { default: command } = await import(`./Commands/${file}`);
bot.commands.set(command.data.name, command);
}
@@ -54,7 +54,7 @@ bot.once('ready', async() => {
bot.user.setPresence({
activities: [{
name: presenceActivity,
- type: 'LISTENING'
+ type: activityType
}],
status: 'online'
});