diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-19 12:41:20 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-19 12:41:20 -0400 |
| commit | cacb78dfd848347d02fd257e244afb8950670476 (patch) | |
| tree | 28569dddb9e5881e4e8fbaff86d1b5036f31df3a /bot.js | |
| parent | 3b1546f0f2061a3c3c18f68d6a1a3377e780c497 (diff) | |
| download | DLAP-cacb78dfd848347d02fd257e244afb8950670476.tar.gz DLAP-cacb78dfd848347d02fd257e244afb8950670476.tar.bz2 DLAP-cacb78dfd848347d02fd257e244afb8950670476.zip | |
Changed the function name
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,9 +2,9 @@ const Discord = require('discord.js'); const client = new Discord.Client(); const config = require('./token.json'); const fs = require('fs'); -let prefix = "!" +let prefix = "!"; -function fetchAudio() { +function playAudio() { } @@ -37,6 +37,7 @@ client.on('message', async msg => { if (msg.member.voice.channel) { console.log("Connected to voice chat...") const connection = await msg.member.voice.channel.join(); + playAudio(); connection.play('./music/4616-werq-by-kevin-macleod.mp3'); console.log(connection) } else { |
