This commit is contained in:
Daniel Odendahl Jr
2017-06-25 14:21:00 +00:00
parent 36ab4d8b25
commit 56fb6e04d2
5 changed files with 1 additions and 39 deletions
-35
View File
@@ -1,35 +0,0 @@
const Command = require('../../structures/Command');
const Cleverbot = require('cleverio');
const { CLEVS_KEY, CLEVS_USER, CLEVS_NICK } = process.env;
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 do you want to say to Cleverbot?',
type: 'string'
}
]
});
this.clevs = new Cleverbot({
key: CLEVS_KEY,
user: CLEVS_USER,
nick: CLEVS_NICK
});
this.clevs.create();
}
async run(msg, args) {
const { text } = args;
const { response } = await this.clevs.ask(text);
return msg.reply(response);
}
};
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class UrbanCommand extends Command {
.setTitle(body.list[0].word)
.setDescription(body.list[0].definition.substr(0, 2000))
.addField(' Example',
body.list[0].example.substr(0, 2000) || 'None');
body.list[0].example.substr(0, 1024) || 'None');
return msg.embed(embed);
}
};
-1
View File
@@ -23,7 +23,6 @@
<li>Moderation Commands including Ban/Kick/Softban/Unban/Warn, Lockdown, and Prune, with Logging!</li>
<li>Currency and Temperature Conversion!</li>
<li>Math Calculator!</li>
<li>Cleverbot!</li>
<li>Tons of Secret Easter Eggs to discover!</li>
<li>Horoscopes!</li>
<li>LMGTFY Link Generation!</li>
-1
View File
@@ -20,7 +20,6 @@
<li>Moderation Commands including Ban/Kick/Softban/Unban/Warn, Lockdown, and Prune, with Logging!</li>
<li>Currency and Temperature Conversion!</li>
<li>Math Calculator!</li>
<li>Cleverbot!</li>
<li>Tons of Secret Easter Eggs to discover!</li>
<li>Horoscopes!</li>
<li>LMGTFY Link Generation!</li>
-1
View File
@@ -35,7 +35,6 @@
"bufferutil": "^3.0.1",
"canvas": "automattic/node-canvas",
"cheerio": "^1.0.0-rc.1",
"cleverio": "dragonfire535/cleverio",
"custom-translate": "dragonfire535/custom-translate",
"discord.js": "hydrabolt/discord.js",
"discord.js-commando": "gawdl3y/discord.js-commando",