aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-23 01:31:37 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-23 01:31:37 -0400
commita544b8e7d699461c49a69ab6072c7327e0519359 (patch)
treed65f72ae77ff1978834d10fdcf252cd042ccb9a6 /bot.js
parentb9f0816dd7ac09d28a8baae9ae58e871a59c8a7c (diff)
downloadDLAP-a544b8e7d699461c49a69ab6072c7327e0519359.tar.gz
DLAP-a544b8e7d699461c49a69ab6072c7327e0519359.tar.bz2
DLAP-a544b8e7d699461c49a69ab6072c7327e0519359.zip
Removed web streaming; Fixed security problems
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/bot.js b/bot.js
index 0cd0823..4ef5542 100644
--- a/bot.js
+++ b/bot.js
@@ -21,23 +21,18 @@
import { Client, GatewayIntentBits, EmbedBuilder, Collection, version, InteractionType } from 'discord.js';
import { voiceInit } from './AudioBackend.js';
import { readdirSync, readFileSync } from 'node:fs';
-import { webServer } from './WebStream.js';
// import config from './config.json' assert { type: 'json' } Not supported by ESLint yet
const { token, statusChannel, voiceChannel, shuffle } = JSON.parse(readFileSync('./config.json'));
const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] });
bot.login(token);
-// webServer();
-
/**
- * Project Ideas:
- * Audio streaming
- * Metadata support
- * m3u support
- * Custom string support
- * Non repeat support
- * Modularizing AudioBackend
+ * TODO: - Metadata support
+ * - m3u support
+ * - Custom string support (Basically change what the bot is saying)
+ * - Non repeat support
+ * - Modularizing AudioBackend
*/
// Slash Command Handler
@@ -84,7 +79,7 @@ bot.once('ready', async() => {
});
bot.on('interactionCreate', async interaction => {
- if (!interaction.type === InteractionType.ApplicationCommand) return;
+ if (interaction.type === !InteractionType.ApplicationCommand) return;
const command = bot.commands.get(interaction.commandName);