mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Cleverbot Create Thing
This commit is contained in:
@@ -7,7 +7,13 @@ const client = new CommandoClient({
|
||||
unknownCommandResponse: false
|
||||
});
|
||||
const path = require('path');
|
||||
|
||||
const { carbon, discordBots } = require('./structures/Stats');
|
||||
|
||||
const Cleverbot = require('./structures/Cleverbot');
|
||||
const clevs = new Cleverbot();
|
||||
clevs.create();
|
||||
|
||||
const SequelizeProvider = require('./providers/Sequelize');
|
||||
const Database = require('./structures/PostgreSQL');
|
||||
const database = new Database();
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
const request = require('superagent');
|
||||
|
||||
class Cleverbot {
|
||||
create() {
|
||||
request
|
||||
.post('https://cleverbot.io/1.0/create')
|
||||
.send({
|
||||
user: process.env.CLEVS_USER,
|
||||
key: process.env.CLEVS_KEY,
|
||||
nick: process.env.CLEVS_NICK
|
||||
})
|
||||
.then(response => console.log(`[Cleverbot] Created with nick: ${response.body.nick}`))
|
||||
.catch(err => console.error(`[Cleverbot] Failed to create: ${err}`));
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Cleverbot;
|
||||
Reference in New Issue
Block a user