diff --git a/assets/json/soundboard.json b/assets/json/soundboard.json deleted file mode 100644 index b1dfd31c..00000000 --- a/assets/json/soundboard.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "names": [ - "airhorn", - "cat", - "dun dun dun", - "pikachu", - "space" - ], - "paths": { - "airhorn": "airhorn.mp3", - "cat": "cat.mp3", - "dun dun dun": "dun-dun-dun.mp3", - "pikachu": "pikachu.mp3", - "space": "space.mp3" - } -} diff --git a/assets/sounds/airhorn.mp3 b/assets/sounds/airhorn.mp3 deleted file mode 100644 index 88fd671d..00000000 Binary files a/assets/sounds/airhorn.mp3 and /dev/null differ diff --git a/assets/sounds/cat.mp3 b/assets/sounds/cat.mp3 deleted file mode 100644 index 79484ed9..00000000 Binary files a/assets/sounds/cat.mp3 and /dev/null differ diff --git a/assets/sounds/dun-dun-dun.mp3 b/assets/sounds/dun-dun-dun.mp3 deleted file mode 100644 index c3037f8b..00000000 Binary files a/assets/sounds/dun-dun-dun.mp3 and /dev/null differ diff --git a/assets/sounds/pikachu.mp3 b/assets/sounds/pikachu.mp3 deleted file mode 100644 index 8e817ceb..00000000 Binary files a/assets/sounds/pikachu.mp3 and /dev/null differ diff --git a/assets/sounds/space.mp3 b/assets/sounds/space.mp3 deleted file mode 100644 index 0a3ad350..00000000 Binary files a/assets/sounds/space.mp3 and /dev/null differ diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js deleted file mode 100644 index 5ac7e779..00000000 --- a/commands/random/soundboard.js +++ /dev/null @@ -1,57 +0,0 @@ -const Command = require('../../structures/Command'); -const { names, paths } = require('../../assets/json/soundboard'); -const path = require('path'); - -module.exports = class SoundboardCommand extends Command { - constructor(client) { - super(client, { - name: 'soundboard', - aliases: ['sound'], - group: 'random', - memberName: 'soundboard', - description: 'Plays a sound in your voice channel.', - details: `**Sounds:** ${names.join(', ')}`, - guildOnly: true, - throttling: { - usages: 1, - duration: 15 - }, - clientPermissions: ['ADD_REACTIONS'], - args: [ - { - key: 'sound', - prompt: 'What sound would you like to play?', - type: 'string', - validate: (sound) => { - if (names.includes(sound.toLowerCase())) return true; - else return 'Invalid Sound. Use `help soundboard` for a list of sounds.'; - }, - parse: (sound) => sound.toLowerCase() - } - ] - }); - } - - async run(msg, args) { - const voiceChannel = msg.member.voiceChannel; - if (!voiceChannel) return msg.say('Please enter a Voice Channel first.'); - if (!voiceChannel.permissionsFor(this.client.user).has(['CONNECT', 'SPEAK'])) { - return msg.say('Missing the `CONNECT` or `SPEAK` Permission for the Voice Channel.'); - } - if (!voiceChannel.joinable) return msg.say('Your Voice Channel is not joinable.'); - if (this.client.voiceConnections.has(voiceChannel.guild.id)) return msg.say('I am already playing a sound.'); - const { sound } = args; - const connection = await voiceChannel.join(); - await msg.react('🔊'); - const dispatcher = connection.playFile(path.join(__dirname, '..', '..', 'assets', 'sounds', paths[sound])); - dispatcher.once('end', () => { - voiceChannel.leave(); - msg.react('✅'); - }); - dispatcher.once('error', () => { - voiceChannel.leave(); - msg.react('⚠'); - }); - return null; - } -}; diff --git a/html/carbonfeat.html b/html/carbonfeat.html index 830806ee..07e838c7 100644 --- a/html/carbonfeat.html +++ b/html/carbonfeat.html @@ -27,7 +27,6 @@
  • Tons of Secret Easter Eggs to discover!
  • Horoscopes!
  • LMGTFY Link Generation!
  • -
  • Soundboard!
  • Starboard!
  • Strawpoll Generation!
  • Events that Happened today in history!
  • diff --git a/html/discordbots.html b/html/discordbots.html index cb3df2f3..21e124b8 100644 --- a/html/discordbots.html +++ b/html/discordbots.html @@ -24,7 +24,6 @@
  • Tons of Secret Easter Eggs to discover!
  • Horoscopes!
  • LMGTFY Link Generation!
  • -
  • Soundboard!
  • Starboard!
  • Strawpoll Generation!
  • Events that Happened today in history!
  • diff --git a/package.json b/package.json index dcd56a53..fe28df71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "23.0.0", + "version": "24.0.0", "description": "Your personal server companion.", "main": "Shard.js", "scripts": { @@ -45,7 +45,6 @@ "mathjs": "^3.13.3", "moment": "^2.18.1", "moment-duration-format": "^1.3.0", - "node-opus": "^0.2.6", "pg": "^6.2.4", "sequelize": "^4.1.0", "snekfetch": "^3.1.11",