mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 00:09:08 +02:00
A
This commit is contained in:
@@ -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);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -33,7 +33,7 @@ module.exports = class UrbanCommand extends Command {
|
|||||||
.setTitle(body.list[0].word)
|
.setTitle(body.list[0].word)
|
||||||
.setDescription(body.list[0].definition.substr(0, 2000))
|
.setDescription(body.list[0].definition.substr(0, 2000))
|
||||||
.addField('❯ Example',
|
.addField('❯ Example',
|
||||||
body.list[0].example.substr(0, 2000) || 'None');
|
body.list[0].example.substr(0, 1024) || 'None');
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
<li>Moderation Commands including Ban/Kick/Softban/Unban/Warn, Lockdown, and Prune, with Logging!</li>
|
<li>Moderation Commands including Ban/Kick/Softban/Unban/Warn, Lockdown, and Prune, with Logging!</li>
|
||||||
<li>Currency and Temperature Conversion!</li>
|
<li>Currency and Temperature Conversion!</li>
|
||||||
<li>Math Calculator!</li>
|
<li>Math Calculator!</li>
|
||||||
<li>Cleverbot!</li>
|
|
||||||
<li>Tons of Secret Easter Eggs to discover!</li>
|
<li>Tons of Secret Easter Eggs to discover!</li>
|
||||||
<li>Horoscopes!</li>
|
<li>Horoscopes!</li>
|
||||||
<li>LMGTFY Link Generation!</li>
|
<li>LMGTFY Link Generation!</li>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
<li>Moderation Commands including Ban/Kick/Softban/Unban/Warn, Lockdown, and Prune, with Logging!</li>
|
<li>Moderation Commands including Ban/Kick/Softban/Unban/Warn, Lockdown, and Prune, with Logging!</li>
|
||||||
<li>Currency and Temperature Conversion!</li>
|
<li>Currency and Temperature Conversion!</li>
|
||||||
<li>Math Calculator!</li>
|
<li>Math Calculator!</li>
|
||||||
<li>Cleverbot!</li>
|
|
||||||
<li>Tons of Secret Easter Eggs to discover!</li>
|
<li>Tons of Secret Easter Eggs to discover!</li>
|
||||||
<li>Horoscopes!</li>
|
<li>Horoscopes!</li>
|
||||||
<li>LMGTFY Link Generation!</li>
|
<li>LMGTFY Link Generation!</li>
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
"bufferutil": "^3.0.1",
|
"bufferutil": "^3.0.1",
|
||||||
"canvas": "automattic/node-canvas",
|
"canvas": "automattic/node-canvas",
|
||||||
"cheerio": "^1.0.0-rc.1",
|
"cheerio": "^1.0.0-rc.1",
|
||||||
"cleverio": "dragonfire535/cleverio",
|
|
||||||
"custom-translate": "dragonfire535/custom-translate",
|
"custom-translate": "dragonfire535/custom-translate",
|
||||||
"discord.js": "hydrabolt/discord.js",
|
"discord.js": "hydrabolt/discord.js",
|
||||||
"discord.js-commando": "gawdl3y/discord.js-commando",
|
"discord.js-commando": "gawdl3y/discord.js-commando",
|
||||||
|
|||||||
Reference in New Issue
Block a user