mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Removed the audio player for now
This commit is contained in:
@@ -6,15 +6,13 @@ const { VoiceConnectionStatus, AudioPlayerStatus } = require('@discordjs/voice')
|
||||
module.exports = {
|
||||
name: "playaudio",
|
||||
execute(message, args, client) {
|
||||
// message.channel.send("This command has not been set up yet\nSorry!");
|
||||
// return;
|
||||
const ytdl = require('ytdl-core-discord');
|
||||
const url = args[0];
|
||||
|
||||
async function play(connection, url) {
|
||||
connection.playOpusStream(await ytdl(url));
|
||||
}
|
||||
|
||||
message.channel.send("This command has not been set up yet\nSorry!");
|
||||
return;
|
||||
// const ytdl = require('ytdl-core-discord');
|
||||
// const url = args[0];
|
||||
|
||||
// async function play(connection, url) {
|
||||
// connection.playOpusStream(await ytdl(url));
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user