summaryrefslogtreecommitdiff
path: root/commands/squeak.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/squeak.js')
-rw-r--r--commands/squeak.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/commands/squeak.js b/commands/squeak.js
deleted file mode 100644
index fef4520..0000000
--- a/commands/squeak.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const voice_check_dialog = require('../utils/voice_check_dialog.js');
-
-module.exports = {
- name: 'squeak',
- description: '',
- 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/squeak.wav', {
- volume: 0.2
- });
-
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else {
- voice_check_dialog.execute(msg);
- }
- }
-}; \ No newline at end of file