mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Allow/Disallow Cleverbot
This commit is contained in:
@@ -121,6 +121,18 @@ client.on('ready', async () => {
|
||||
}
|
||||
}, 1.8e+6);
|
||||
|
||||
// Import Cleverbot users
|
||||
try {
|
||||
const results = client.importCleverbotAllowed();
|
||||
if (results) {
|
||||
client.logger.info('[CLEVERBOT] cleverbot.json successfully loaded.');
|
||||
} else {
|
||||
client.logger.error('[CLEVERBOT] cleverbot.json is not formatted correctly.');
|
||||
}
|
||||
} catch (err) {
|
||||
client.logger.error(`[CLEVERBOT] Could not parse cleverbot.json:\n${err.stack}`);
|
||||
}
|
||||
|
||||
// Import blacklist
|
||||
try {
|
||||
const results = client.importBlacklist();
|
||||
|
||||
Reference in New Issue
Block a user