diff --git a/commands/botinfo/info.js b/commands/botinfo/info.js index 04068ca6..d78e2cb7 100644 --- a/commands/botinfo/info.js +++ b/commands/botinfo/info.js @@ -46,14 +46,12 @@ module.exports = class InfoCommand extends commando.Command { moment.duration(this.client.uptime).format('d[d]h[h]m[m]s[s]'), true) .addField('Node Version', process.version, true) - .addField('Voice Connections', - `${this.client.voiceConnections.size} / ${vCConnections.reduce((prev, val) => prev + val, 0)}`, true) + .addField('Library', + '[discord.js](https://discord.js.org/#/)', true) .addField('Modules', - '[discord.js](https://discord.js.org/#/), [commando](https://github.com/Gawdl3y/discord.js-commando), [pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse), [superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [opusscript](https://github.com/abalabahaha/opusscript), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/)') + '[commando](https://github.com/Gawdl3y/discord.js-commando), [pirate-speak](https://github.com/mikewesthad/pirate-speak), [google-translate-api](https://github.com/matheuss/google-translate-api), [zalgoize](https://github.com/clux/zalgolize), [hepburn](https://github.com/lovell/hepburn), [string-to-binary](https://www.npmjs.com/package/string-to-binary), [roman-numeral-converter-mmxvi](https://github.com/Cein-Markey/roman-numeral-conversion-library), [cowsay](https://github.com/piuccio/cowsay), [morse](https://github.com/ecto/morse), [superagent](https://github.com/visionmedia/superagent), [mathjs](http://mathjs.org/), [moment](http://momentjs.com), [moment-duration-format](https://github.com/jsmreese/moment-duration-format), [jimp](https://github.com/oliver-moran/jimp), [cheerio](https://cheerio.js.org/)') .addField('APIs', - '[Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/#api), [jService API](http://jservice.io/), [Strawpoll API](https://github.com/strawpoll/strawpoll/wiki/API), [Urban Dictionary API](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB API](http://www.omdbapi.com/), [Yahoo Weather API](https://developer.yahoo.com/weather/), [iTunes Store Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/)') - .addField('Other Credit', - '[Heroku](https://www.heroku.com/), [Cloud9](https://c9.io/), [heroku-buildpack-ffmpeg-latest](https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest)'); + '[Wattpad API](https://developer.wattpad.com/docs/api), [Wordnik API](http://developer.wordnik.com/docs.html), [osu! API](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices API](http://docs.yugiohprices.apiary.io/#), [YouTube Data API](https://developers.google.com/youtube/v3/), [Yoda Speak API](https://market.mashape.com/ismaelc/yoda-speak), [Discord Bots API](https://bots.discord.pw/api), [Today in History API](http://history.muffinlabs.com/#api), [jService API](http://jservice.io/), [Strawpoll API](https://github.com/strawpoll/strawpoll/wiki/API), [Urban Dictionary API](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB API](http://www.omdbapi.com/), [Yahoo Weather API](https://developer.yahoo.com/weather/), [iTunes Store Search API](https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/)'); return message.embed(embed); } }; diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js deleted file mode 100644 index d99b312b..00000000 --- a/commands/random/soundboard.js +++ /dev/null @@ -1,74 +0,0 @@ -const commando = require('discord.js-commando'); -const sounds = ['cat', 'pikachu', 'vader', 'doh', 'it\'s a trap', 'mario death', 'pokemon center', 'dun dun dun', 'spongebob', 'ugly barnacle', 'woo hoo', 'space', 'glados bird', 'airhorn', 'zelda chest', 'eat my shorts', 'no this is patrick', 'wumbo']; -const paths = { - "cat": "./sounds/cat.mp3", - "pikachu": "./sounds/pikachu.mp3", - "vader": "./sounds/vader.mp3", - "doh": "./sounds/doh.mp3", - "it's a trap": "./sounds/its-a-trap.mp3", - "mario death": "./sounds/mario-death.mp3", - "pokemon center": "./sounds/pokemon-center.mp3", - "dun dun dun": "./sounds/dun-dun-dun.mp3", - "spongebob": "./sounds/spongebob.mp3", - "ugly barnacle": "./sounds/ugly-barnacle.mp3", - "woo hoo": "./sounds/woohoo.mp3", - "space": "./sounds/space.mp3", - "glados bird": "./sounds/glados-bird.mp3", - "airhorn": "./sounds/airhorn.mp3", - "zelda chest": "./sounds/zelda-chest.mp3", - "eat my shorts": "./sounds/eat-my-shorts.mp3", - "no this is patrick": "./sounds/no-this-is-patrick.mp3", - "wumbo": "./sounds/wumbo.mp3" -}; - -module.exports = class SoundBoardCommand extends commando.Command { - constructor(Client) { - super(Client, { - name: 'soundboard', - aliases: [ - 'sound', - 'play' - ], - group: 'random', - memberName: 'soundboard', - description: 'Plays a sound in your voice channel. (;soundboard cat)', - details: '**Sounds:** Cat, Pikachu, Vader, Doh, It\'s a Trap, Mario Death, Pokemon Center, Dun Dun Dun, Spongebob, Ugly Barnacle, Woo Hoo, Space, GLaDOS Bird, Airhorn, Zelda Chest, Eat my Shorts, No This is Patrick, Wumbo', - examples: [';soundboard cat'], - guildOnly: true, - args: [{ - key: 'sound', - prompt: 'What sound do you want me to play?', - type: 'string', - validate: sound => { - if (sounds.some(soundArray => sound.toLowerCase() === soundArray)) { - return true; - } - return 'Sound not found. Use `;help soundboard` to view a list of sounds.'; - } - }] - }); - } - - async run(message, args) { - if (message.channel.type !== 'dm') { - if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'CONNECT', 'SPEAK', 'ADD_REACTIONS'])) return; - } - console.log(`[Command] ${message.content}`); - const voiceChannel = message.member.voiceChannel; - if (!voiceChannel) return message.say(`:x: Error! Please be in a voice channel first!`); - const soundToPlay = args.sound.toLowerCase(); - const alreadyConnected = await this.client.voiceConnections.get(voiceChannel.guild.id); - if (alreadyConnected) { - if (alreadyConnected.channel.id === voiceChannel.id) return message.say(':x: Error! I am already playing a sound!'); - return message.say(':x: Error! I am already playing a sound!'); - } - const connection = await voiceChannel.join(); - const stream = paths[soundToPlay]; - const dispatcher = connection.playStream(stream); - message.react('🔊'); - dispatcher.on('end', () => { - message.react('✅'); - return voiceChannel.leave(); - }); - } -}; diff --git a/html/carbondesc.html b/html/carbondesc.html index 80f2662a..08632a9d 100644 --- a/html/carbondesc.html +++ b/html/carbondesc.html @@ -29,7 +29,6 @@
  • cowsay
  • moment
  • moment-duration-format
  • -
  • opusscript
  • morse
  • cheerio
  • @@ -54,7 +53,7 @@

    Information

    diff --git a/html/carbonfeat.html b/html/carbonfeat.html index a8584df2..d4a638c4 100644 --- a/html/carbonfeat.html +++ b/html/carbonfeat.html @@ -19,7 +19,6 @@
  • Avatar Editing (RIP, Bob Ross, etc.)
  • Make Strawpolls
  • Meme Generator
  • -
  • Soundboard
  • Math
  • Typing and Math Games
  • Random Roasts and Compliments
  • diff --git a/html/discordbots.html b/html/discordbots.html index 13e5c757..9db1a982 100644 --- a/html/discordbots.html +++ b/html/discordbots.html @@ -23,7 +23,6 @@
  • Avatar Editing (RIP, Bob Ross, etc.)
  • Make Strawpolls
  • Meme Generator
  • -
  • Soundboard
  • Math
  • Typing and Math Games
  • Random Roasts and Compliments
  • @@ -78,7 +77,6 @@
  • cowsay
  • moment
  • moment-duration-format
  • -
  • opusscript
  • morse
  • cheerio
  • @@ -104,7 +102,7 @@

    Information

    diff --git a/package.json b/package.json index e4f6e797..575935ca 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "moment": "^2.18.1", "moment-duration-format": "^1.3.0", "morse": "^0.1.0", - "opusscript": "0.0.3", "pirate-speak": "^1.0.1", "roman-numeral-converter-mmxvi": "^1.0.5", "string-to-binary": "^0.1.2", diff --git a/sounds/airhorn.mp3 b/sounds/airhorn.mp3 deleted file mode 100644 index 88fd671d..00000000 Binary files a/sounds/airhorn.mp3 and /dev/null differ diff --git a/sounds/cat.mp3 b/sounds/cat.mp3 deleted file mode 100644 index 79484ed9..00000000 Binary files a/sounds/cat.mp3 and /dev/null differ diff --git a/sounds/doh.mp3 b/sounds/doh.mp3 deleted file mode 100644 index 07634a1f..00000000 Binary files a/sounds/doh.mp3 and /dev/null differ diff --git a/sounds/dun-dun-dun.mp3 b/sounds/dun-dun-dun.mp3 deleted file mode 100644 index c3037f8b..00000000 Binary files a/sounds/dun-dun-dun.mp3 and /dev/null differ diff --git a/sounds/eat-my-shorts.mp3 b/sounds/eat-my-shorts.mp3 deleted file mode 100644 index 537a5c02..00000000 Binary files a/sounds/eat-my-shorts.mp3 and /dev/null differ diff --git a/sounds/glados-bird.mp3 b/sounds/glados-bird.mp3 deleted file mode 100644 index 41d850ab..00000000 Binary files a/sounds/glados-bird.mp3 and /dev/null differ diff --git a/sounds/its-a-trap.mp3 b/sounds/its-a-trap.mp3 deleted file mode 100644 index 3d9597dc..00000000 Binary files a/sounds/its-a-trap.mp3 and /dev/null differ diff --git a/sounds/mario-death.mp3 b/sounds/mario-death.mp3 deleted file mode 100644 index 5d97899b..00000000 Binary files a/sounds/mario-death.mp3 and /dev/null differ diff --git a/sounds/no-this-is-patrick.mp3 b/sounds/no-this-is-patrick.mp3 deleted file mode 100644 index 0ca29e01..00000000 Binary files a/sounds/no-this-is-patrick.mp3 and /dev/null differ diff --git a/sounds/pikachu.mp3 b/sounds/pikachu.mp3 deleted file mode 100644 index 8e817ceb..00000000 Binary files a/sounds/pikachu.mp3 and /dev/null differ diff --git a/sounds/pokemon-center.mp3 b/sounds/pokemon-center.mp3 deleted file mode 100644 index bca7c07c..00000000 Binary files a/sounds/pokemon-center.mp3 and /dev/null differ diff --git a/sounds/space.mp3 b/sounds/space.mp3 deleted file mode 100644 index 0a3ad350..00000000 Binary files a/sounds/space.mp3 and /dev/null differ diff --git a/sounds/spongebob.mp3 b/sounds/spongebob.mp3 deleted file mode 100644 index 6917a08f..00000000 Binary files a/sounds/spongebob.mp3 and /dev/null differ diff --git a/sounds/ugly-barnacle.mp3 b/sounds/ugly-barnacle.mp3 deleted file mode 100644 index 3f9d075f..00000000 Binary files a/sounds/ugly-barnacle.mp3 and /dev/null differ diff --git a/sounds/vader.mp3 b/sounds/vader.mp3 deleted file mode 100644 index 12f158d8..00000000 Binary files a/sounds/vader.mp3 and /dev/null differ diff --git a/sounds/woohoo.mp3 b/sounds/woohoo.mp3 deleted file mode 100644 index d4a52976..00000000 Binary files a/sounds/woohoo.mp3 and /dev/null differ diff --git a/sounds/wumbo.mp3 b/sounds/wumbo.mp3 deleted file mode 100644 index f83b258d..00000000 Binary files a/sounds/wumbo.mp3 and /dev/null differ diff --git a/sounds/zelda-chest.mp3 b/sounds/zelda-chest.mp3 deleted file mode 100644 index 30d70ded..00000000 Binary files a/sounds/zelda-chest.mp3 and /dev/null differ