aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot.js b/bot.js
index 4df724f..6fb8211 100644
--- a/bot.js
+++ b/bot.js
@@ -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 {