From ec27e78286cd039cf88f223f109c513a3ef642c5 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 6 May 2017 05:44:43 +0000 Subject: [PATCH] Revert --- README.md | 2 +- commands/random/cleverbot.js | 42 ------------------------------------ commands/util/info.js | 40 +++++++++++++++++++++++++++++++++- html/carbondesc.html | 1 - html/carbonfeat.html | 1 - html/discordbots.html | 2 -- index.js | 6 ------ package.json | 2 +- structures/Cleverbot.js | 17 --------------- 9 files changed, 41 insertions(+), 72 deletions(-) delete mode 100644 commands/random/cleverbot.js delete mode 100644 structures/Cleverbot.js diff --git a/README.md b/README.md index 69ed6641..8b19ae44 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ You can join the home server with [this link](https://discord.gg/fqQF8mc). [discord.js](https://discord.js.org/#/), [commando](https://github.com/Gawdl3y/discord.js-commando), [zalgoize](https://github.com/clux/zalgolize), [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/), [sequelize](http://docs.sequelizejs.com/en/v3/), [pg](https://github.com/brianc/node-postgres) ## APIs -[Wattpad](https://developer.wattpad.com/docs/api), [Wordnik](http://developer.wordnik.com/docs.html), [osu!](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices](http://docs.yugiohprices.apiary.io/#), [YouTube Data](https://developers.google.com/youtube/v3/), [Discord Bots](https://bots.discord.pw/api), [Today in History](http://history.muffinlabs.com/#api), [jService](http://jservice.io/), [Urban Dictionary](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB](http://www.omdbapi.com/), [Yahoo Weather](https://developer.yahoo.com/weather/), [Google Static Maps](https://developers.google.com/maps/documentation/static-maps/), [Strawpoll](https://github.com/strawpoll/strawpoll/wiki/API), [rrrather](http://www.rrrather.com/botapi), [SoundCloud](https://developers.soundcloud.com/), [random.cat](http://random.cat/), [random.dog](https://random.dog/), [fixer.io](http://fixer.io/), [cleverbot.io](https://cleverbot.io/) +[Wattpad](https://developer.wattpad.com/docs/api), [Wordnik](http://developer.wordnik.com/docs.html), [osu!](https://osu.ppy.sh/p/api), [memegen.link](https://memegen.link/), [Yugioh Prices](http://docs.yugiohprices.apiary.io/#), [YouTube Data](https://developers.google.com/youtube/v3/), [Discord Bots](https://bots.discord.pw/api), [Today in History](http://history.muffinlabs.com/#api), [jService](http://jservice.io/), [Urban Dictionary](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), [OMDB](http://www.omdbapi.com/), [Yahoo Weather](https://developer.yahoo.com/weather/), [Google Static Maps](https://developers.google.com/maps/documentation/static-maps/), [Strawpoll](https://github.com/strawpoll/strawpoll/wiki/API), [rrrather](http://www.rrrather.com/botapi), [SoundCloud](https://developers.soundcloud.com/), [random.cat](http://random.cat/), [random.dog](https://random.dog/), [fixer.io](http://fixer.io/) ## Licensing The bot is licensed under an [ISC License](https://opensource.org/licenses/ISC). See the file `LICENSE.md` for more information. diff --git a/commands/random/cleverbot.js b/commands/random/cleverbot.js deleted file mode 100644 index ac3182f2..00000000 --- a/commands/random/cleverbot.js +++ /dev/null @@ -1,42 +0,0 @@ -const { Command } = require('discord.js-commando'); -const request = require('superagent'); - -module.exports = class CleverbotCommand extends Command { - constructor(client) { - super(client, { - name: 'cleverbot', - aliases: [ - 'clevs', - 'chat' - ], - group: 'random', - memberName: 'cleverbot', - description: 'Talk to Cleverbot.', - args: [ - { - key: 'text', - prompt: 'What would you like to say to Cleverbot?', - type: 'string', - parse: text => encodeURIComponent(text) - } - ] - }); - } - - async run(msg, args) { - const { text } = args; - try { - const { body } = await request - .post('https://cleverbot.io/1.0/ask') - .send({ - user: process.env.CLEVS_USER, - key: process.env.CLEVS_KEY, - nick: process.env.CLEVS_NICK, - text - }); - return msg.reply(body.response); - } catch(err) { - return msg.say(`An Error Occurred: ${err}`); - } - } -}; diff --git a/commands/util/info.js b/commands/util/info.js index ca83616f..9d974d3f 100644 --- a/commands/util/info.js +++ b/commands/util/info.js @@ -48,7 +48,45 @@ module.exports = class InfoCommand extends Command { .addField('Node Version', process.version, true) .addField('Library', - '[discord.js](https://discord.js.org/#/)[-commando](https://github.com/Gawdl3y/discord.js-commando)', true); + '[discord.js](https://discord.js.org/#/)', true) + .addField('Modules', + oneLine` + [commando](https://github.com/Gawdl3y/discord.js-commando), + [zalgoize](https://github.com/clux/zalgolize), + [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/), + [sequelize](http://docs.sequelizejs.com/en/v3/), + [pg](https://github.com/brianc/node-postgres) + ` + ) + .addField('APIs', + oneLine` + [Wattpad](https://developer.wattpad.com/docs/api), + [Wordnik](http://developer.wordnik.com/docs.html), + [osu!](https://osu.ppy.sh/p/api), + [memegen.link](https://memegen.link/), + [Yugioh Prices](http://docs.yugiohprices.apiary.io/#), + [YouTube Data](https://developers.google.com/youtube/v3/), + [Discord Bots](https://bots.discord.pw/api), + [Today in History](http://history.muffinlabs.com/#api), + [jService](http://jservice.io/), + [Urban Dictionary](https://github.com/zdict/zdict/wiki/Urban-dictionary-API-documentation), + [OMDB](http://www.omdbapi.com/), + [Yahoo Weather](https://developer.yahoo.com/weather/), + [Wikipedia](https://en.wikipedia.org/w/api.php), + [Google Static Maps](https://developers.google.com/maps/documentation/static-maps/), + [Strawpoll](https://github.com/strawpoll/strawpoll/wiki/API), + [rrrather](http://www.rrrather.com/botapi), + [SoundCloud](https://developers.soundcloud.com/), + [random.cat](http://random.cat/), + [random.dog](https://random.dog/), + [fixer.io](http://fixer.io/) + ` + ); return msg.embed(embed); } }; diff --git a/html/carbondesc.html b/html/carbondesc.html index bb7d8e51..76605f05 100644 --- a/html/carbondesc.html +++ b/html/carbondesc.html @@ -52,7 +52,6 @@
  • random.cat
  • random.dog
  • fixer.io
  • -
  • cleverbot.io
  • Information

  • LMGTFY Link Generation!
  • -
  • Cleverbot!
  • Binary, Morse, Pirate, and Temmie Translators!
  • Cowsay, Embed, Reverse, Zalgo, and Upside Down Text!
  • Customizable Prefix!
  • diff --git a/html/discordbots.html b/html/discordbots.html index ec6be305..d3f62fe3 100644 --- a/html/discordbots.html +++ b/html/discordbots.html @@ -43,7 +43,6 @@
  • YuGiOh! Card Data
  • LMGTFY Link Generation!
  • -
  • Cleverbot!
  • Binary, Morse, Pirate, and Temmie Translators!
  • Cowsay, Embed, Reverse, Zalgo, and Upside Down Text!
  • Customizable Prefix!
  • @@ -96,7 +95,6 @@
  • random.cat
  • random.dog
  • fixer.io
  • -
  • cleverbot.io
  • Information