mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Move nick to env
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const { TOKEN, OWNER, PREFIX, INVITE, CLEVS_KEY, CLEVS_USER } = process.env;
|
const { TOKEN, OWNER, PREFIX, INVITE, CLEVS_KEY, CLEVS_USER, CLEVS_NICK } = process.env;
|
||||||
|
|
||||||
const { CommandoClient } = require('discord.js-commando');
|
const { CommandoClient } = require('discord.js-commando');
|
||||||
const client = new CommandoClient({
|
const client = new CommandoClient({
|
||||||
@@ -20,7 +20,7 @@ const Cleverbot = require('./structures/Cleverbot');
|
|||||||
const clevs = new Cleverbot({
|
const clevs = new Cleverbot({
|
||||||
key: CLEVS_KEY,
|
key: CLEVS_KEY,
|
||||||
user: CLEVS_USER,
|
user: CLEVS_USER,
|
||||||
nick: 'XiaoBot'
|
nick: CLEVS_NICK
|
||||||
});
|
});
|
||||||
clevs.create();
|
clevs.create();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "18.9.4",
|
"version": "18.9.5",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user