Major updates to core

This commit is contained in:
Logan Cusano
2024-02-10 15:10:35 -05:00
parent d563021866
commit 9c46792959
22 changed files with 977 additions and 156 deletions

View File

@@ -78,6 +78,7 @@ export async function connectToChannel(channel) {
});
try {
await entersState(connection, VoiceConnectionStatus.Ready, 30_000);
await connection.subscribe(player);
return connection;
} catch (error) {
connection.destroy();
@@ -100,6 +101,8 @@ export async function initDiscordBotClient(token, readyCallback){
readyCallback(client);
});
/* on event create
// TODO - Implement methods for discord users to interact directly with the bots for realtime info (last talked ID/TG, etc.)
client.on(Events.MessageCreate, async (message) => {
if (!message.guild) return;
console.log(`New Message:`, message.content);
@@ -118,6 +121,7 @@ export async function initDiscordBotClient(token, readyCallback){
}
}
});
*/
client.login(token);
}