Added join button for manully triggering the bot

This commit is contained in:
Myx
2023-10-18 21:53:12 +02:00
parent ba7d6aef1e
commit d1bffddd46
4 changed files with 28 additions and 2 deletions

2
bot.ts
View File

@@ -62,7 +62,7 @@ discordClient.on('ready', async () => {
* @param retries - The number of retries to attempt if no voice channels are found.
* @returns Promise<void>
*/
async function joinRandomChannel(retries = 12) {
export async function joinRandomChannel(retries = 12) {
if (!discordClient.guilds.cache.size) {
console.log(LoggerColors.Red, 'No guilds found');
scheduleNextJoin();