diff options
| author | 8cy <[email protected]> | 2020-04-07 05:00:31 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-07 05:00:31 -0700 |
| commit | fe39c130ce79a818e97a69d5afc01c5b4c32d068 (patch) | |
| tree | 62f07dfb515cbfb23242fd5ab7431ef700cbfb27 | |
| parent | v1.2.8 (diff) | |
| download | s5nical-fe39c130ce79a818e97a69d5afc01c5b4c32d068.tar.xz s5nical-fe39c130ce79a818e97a69d5afc01c5b4c32d068.zip | |
added fart command lol, v1.2.9
| -rw-r--r-- | app.js | 85 | ||||
| -rw-r--r-- | assets/audio/farts/1.mp3 | bin | 0 -> 1201502 bytes | |||
| -rw-r--r-- | assets/audio/farts/2.mp3 | bin | 0 -> 975523 bytes | |||
| -rw-r--r-- | assets/audio/farts/3.mp3 | bin | 0 -> 1396550 bytes | |||
| -rw-r--r-- | assets/audio/farts/4.mp3 | bin | 0 -> 928142 bytes | |||
| -rw-r--r-- | assets/audio/farts/5.mp3 | bin | 0 -> 10123976 bytes | |||
| -rw-r--r-- | assets/audio/farts/6.mp3 | bin | 0 -> 754181 bytes | |||
| -rw-r--r-- | assets/audio/farts/7.mp3 | bin | 0 -> 32409192 bytes | |||
| -rw-r--r-- | assets/audio/farts/8.mp3 | bin | 0 -> 2992326 bytes | |||
| -rw-r--r-- | assets/audio/longest_fart_ever.mp3 | bin | 0 -> 1041482 bytes |
10 files changed, 84 insertions, 1 deletions
@@ -185,6 +185,12 @@ bot.on('message', async msg => { }
}
+ if (command == 'reboot' | command == 'r') {
+ msg.member.voiceChannel.join();
+ msg.member.voiceChannel.leave();
+ msg.reply('reboot finished lol')
+ }
+
/*if (command == 'pause') {
dispatcher.pause();
}
@@ -268,7 +274,84 @@ bot.on('message', async msg => { msg.reply('you need to join a voice channel first silly');
}
}
-
+
+ if (command == 'fart') {
+ 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 if (msg.guild.voiceConnection) {
+ msg.reply('i\'m already playing that lol')
+ } else {
+ msg.reply('you need to join a voice channel first silly');
+ }
+ }
+
// Help
if (command == 'help') {
if (!args.length) {
diff --git a/assets/audio/farts/1.mp3 b/assets/audio/farts/1.mp3 Binary files differnew file mode 100644 index 0000000..39c85c7 --- /dev/null +++ b/assets/audio/farts/1.mp3 diff --git a/assets/audio/farts/2.mp3 b/assets/audio/farts/2.mp3 Binary files differnew file mode 100644 index 0000000..ee702d8 --- /dev/null +++ b/assets/audio/farts/2.mp3 diff --git a/assets/audio/farts/3.mp3 b/assets/audio/farts/3.mp3 Binary files differnew file mode 100644 index 0000000..f9179ad --- /dev/null +++ b/assets/audio/farts/3.mp3 diff --git a/assets/audio/farts/4.mp3 b/assets/audio/farts/4.mp3 Binary files differnew file mode 100644 index 0000000..2a88503 --- /dev/null +++ b/assets/audio/farts/4.mp3 diff --git a/assets/audio/farts/5.mp3 b/assets/audio/farts/5.mp3 Binary files differnew file mode 100644 index 0000000..b4ccf9d --- /dev/null +++ b/assets/audio/farts/5.mp3 diff --git a/assets/audio/farts/6.mp3 b/assets/audio/farts/6.mp3 Binary files differnew file mode 100644 index 0000000..f57c501 --- /dev/null +++ b/assets/audio/farts/6.mp3 diff --git a/assets/audio/farts/7.mp3 b/assets/audio/farts/7.mp3 Binary files differnew file mode 100644 index 0000000..5ea9d51 --- /dev/null +++ b/assets/audio/farts/7.mp3 diff --git a/assets/audio/farts/8.mp3 b/assets/audio/farts/8.mp3 Binary files differnew file mode 100644 index 0000000..d135519 --- /dev/null +++ b/assets/audio/farts/8.mp3 diff --git a/assets/audio/longest_fart_ever.mp3 b/assets/audio/longest_fart_ever.mp3 Binary files differnew file mode 100644 index 0000000..82b11e1 --- /dev/null +++ b/assets/audio/longest_fart_ever.mp3 |