aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-07 23:49:37 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-07 23:49:37 -0400
commit83e4c8679c656ecb352ddc34d5dced9518ba240a (patch)
tree0f220abe0de074880e5f28d4e0779dc6b98d7c07 /bot.js
parent8d2042206df47b0f172ecc829b5f2c518b89a6a5 (diff)
downloadDLAP-83e4c8679c656ecb352ddc34d5dced9518ba240a.tar.gz
DLAP-83e4c8679c656ecb352ddc34d5dced9518ba240a.tar.bz2
DLAP-83e4c8679c656ecb352ddc34d5dced9518ba240a.zip
New shuffling system (not bug free yet); Tweaks and fixes on other commands
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot.js b/bot.js
index 0871112..75a217c 100644
--- a/bot.js
+++ b/bot.js
@@ -23,14 +23,13 @@ import { voiceInit } from './AudioBackend.js'
import { readdirSync } from 'node:fs'
import config from './config.json' assert { type: 'json' }
-export const bot = new Client({intents: ['GUILDS', 'GUILD_MESSAGES', 'GUILD_VOICE_STATES']});
+const bot = new Client({intents: ['GUILDS', 'GUILD_MESSAGES', 'GUILD_VOICE_STATES']});
bot.login(config.token);
/**
* Project Ideas:
- * New queue system
* Shuffle or "Play by order" mode
* Audio streaming
*/
@@ -92,7 +91,7 @@ bot.on('interactionCreate', async interaction => {
if (e == null) {
await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true });
} else {
- await interaction.reply({ content: `There was an error while executing this command! Share this to the bot owner!\n\nDetails:\`\`\`${e}\`\`\``, ephemeral: true });
+ await interaction.reply({ content: `There was an error while executing this command!\nShare this to the bot owner!\n\nDetails:\`\`\`${e}\`\`\``, ephemeral: true });
}
}
});