mirror of
https://github.com/Alee14/DLAP.git
synced 2025-01-22 10:52:03 -05:00
Changed the function name
This commit is contained in:
parent
3b1546f0f2
commit
cacb78dfd8
1 changed files with 3 additions and 2 deletions
5
bot.js
5
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 {
|
||||
|
|
Loading…
Reference in a new issue