Major updates to core
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user