summaryrefslogtreecommitdiff
path: root/commands/abee.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/abee.js')
-rw-r--r--commands/abee.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/commands/abee.js b/commands/abee.js
index c665b12..f46a06b 100644
--- a/commands/abee.js
+++ b/commands/abee.js
@@ -1,11 +1,15 @@
+const ytdl = require('ytdl-core');
+
module.exports = {
name: 'abee',
- aliases: ['a-bee'],
description: '',
- async execute(msg) {
+ async execute(msg, args, bot) {
if (msg.member.voiceChannel && !msg.guild.voiceConnection) {
const connection = await msg.member.voiceChannel.join();
- const dispatcher = connection.playFile('./assets/audio/mario_on_a_bike.mp3', {
+ const stream = ytdl('https://www.youtube.com/watch?v=lvdnhWhQBdo', {
+ filter: 'audioonly'
+ });
+ const dispatcher = connection.playStream(stream, {
volume: 0.5
});
@@ -18,4 +22,4 @@ module.exports = {
msg.reply('you need to join a voice channel first silly');
}
}
-} \ No newline at end of file
+}; \ No newline at end of file