summaryrefslogtreecommitdiff
path: root/commands/fart.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/fart.js')
-rw-r--r--commands/fart.js95
1 files changed, 0 insertions, 95 deletions
diff --git a/commands/fart.js b/commands/fart.js
deleted file mode 100644
index d2fbeb5..0000000
--- a/commands/fart.js
+++ /dev/null
@@ -1,95 +0,0 @@
-const voice_check_dialog = require('../utils/voice_check_dialog.js');
-const bot_voice_check = require('../utils/bot_voice_check.js');
-
-module.exports = {
- name: 'fart',
- aliases: ['f'],
- description: '',
- async execute(msg, args, bot) {
- if (args[0] == 'long' || args[0] == 'longest' || args[0] == 'l') {
- if (msg.member.voiceChannel && !msg.guild.voiceConnection) {
- const connection = await msg.member.voiceChannel.join();
- const dispatcher = connection.playFile('./assets/audio/longest_fart_ever.mp3', {
- volume: 1.0
- });
-
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else {
- voice_check_dialog.execute(msg);
- }
- } else if (msg.member.voiceChannel && !msg.guild.voiceConnection) {
- const connection = await msg.member.voiceChannel.join();
- var fartNum = Math.floor((Math.random() * 8) + 1);
-
- if (fartNum == 1) {
- msg.reply('you got fart 1, courtesy of Sin');
- const dispatcher = connection.playFile('./assets/audio/farts/1.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 2) {
- msg.reply('you got fart 2, courtesy of Sin');
- const dispatcher = connection.playFile('./assets/audio/farts/2.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 3) {
- msg.reply('you got fart 3, courtesy of Sin');
- const dispatcher = connection.playFile('./assets/audio/farts/3.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 4) {
- msg.reply('you got fart 4, courtesy of Sin');
- const dispatcher = connection.playFile('./assets/audio/farts/4.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 5) {
- msg.reply('you got fart 5, courtesy of Sin');
- const dispatcher = connection.playFile('./assets/audio/farts/5.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 6) {
- msg.reply('you got fart 6, courtesy of nick');
- const dispatcher = connection.playFile('./assets/audio/farts/6.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 7) {
- msg.reply('you got fart 7, courtesy of nick');
- const dispatcher = connection.playFile('./assets/audio/farts/7.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- } else if (fartNum == 8) {
- msg.reply('you got fart 8, courtesy of nick');
- const dispatcher = connection.playFile('./assets/audio/farts/8.mp3', {
- volume: 0.5
- });
- dispatcher.on('end', () => {
- msg.member.voiceChannel.leave();
- });
- }
- } else {
- voice_check_dialog.execute(msg);
- }
- }
-}; \ No newline at end of file