summaryrefslogtreecommitdiff
path: root/commands/psycho.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/psycho.js')
-rw-r--r--commands/psycho.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/commands/psycho.js b/commands/psycho.js
deleted file mode 100644
index 13bca98..0000000
--- a/commands/psycho.js
+++ /dev/null
@@ -1,24 +0,0 @@
-const ytdl = require('ytdl-core');
-const voice_check_dialog = require('../utils/voice_check_dialog.js');
-
-module.exports = {
- name: 'psycho',
- description: '',
- async execute(msg, args, bot) {
- if (msg.member.voiceChannel && !msg.guild.voiceConnection) {
- const connection = await msg.member.voiceChannel.join();
- const stream = ytdl('https://www.youtube.com/watch?v=fnd_HSmAODs', {
- filter: 'audioonly'
- });
- const dispatcher = connection.playStream(stream, {
- volume: 0.5
- });
-
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else {
- voice_check_dialog.execute(msg);
- }
- }
-}; \ No newline at end of file