diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-03-25 22:24:49 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-03-25 22:24:49 -0400 |
| commit | b26c8ca38f09cffc70706d1c550c63a371c50abc (patch) | |
| tree | 75956acebb905d9505d740d7045b72e81108d51e | |
| parent | 94641874ff1d86ebf93122bdd40d7a5019ea6215 (diff) | |
| download | DLAP-b26c8ca38f09cffc70706d1c550c63a371c50abc.tar.gz DLAP-b26c8ca38f09cffc70706d1c550c63a371c50abc.tar.bz2 DLAP-b26c8ca38f09cffc70706d1c550c63a371c50abc.zip | |
Doing some fixes
| -rw-r--r-- | bot.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -31,7 +31,7 @@ let txtFile = true; bot.login(config.token); -function joinChannel() { +function voiceInit() { bot.channels.fetch(config.voiceChannel).then(channel => { const connection = joinVoiceChannel({ channelId: channel.id, @@ -123,7 +123,7 @@ bot.on('ready', () => { if (!statusChannel) return console.error('The status channel does not exist! Skipping.'); statusChannel.send({ embeds: [readyEmbed]}); - joinChannel(); + voiceInit(); }); @@ -171,8 +171,7 @@ bot.on('messageCreate', async msg => { if (command == 'join') { msg.reply('Joining voice channel.'); - console.log('Connected to the voice channel.'); - joinChannel(); + voiceInit(); } if (command == 'resume') { |
