mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
New token and prefix
This commit is contained in:
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
const { TOKEN, OWNERS, COMMAND_PREFIX, INVITE } = process.env;
|
const { XIAO_TOKEN, OWNERS, XIAO_COMMAND_PREFIX, INVITE } = process.env;
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { CommandoClient } = require('discord.js-commando');
|
const { CommandoClient } = require('discord.js-commando');
|
||||||
const client = new CommandoClient({
|
const client = new CommandoClient({
|
||||||
commandPrefix: COMMAND_PREFIX,
|
commandPrefix: XIAO_COMMAND_PREFIX,
|
||||||
owner: OWNERS.split(','),
|
owner: OWNERS.split(','),
|
||||||
invite: INVITE,
|
invite: INVITE,
|
||||||
disableEveryone: true,
|
disableEveryone: true,
|
||||||
@@ -40,7 +40,7 @@ client.on('ready', () => {
|
|||||||
console.log(`[READY] Logged in as ${client.user.tag}! (${client.user.id})`);
|
console.log(`[READY] Logged in as ${client.user.tag}! (${client.user.id})`);
|
||||||
client.setInterval(() => {
|
client.setInterval(() => {
|
||||||
const activities = [
|
const activities = [
|
||||||
`${COMMAND_PREFIX}help for commands`,
|
`${XIAO_COMMAND_PREFIX}help for commands`,
|
||||||
'with dragonfire535',
|
'with dragonfire535',
|
||||||
client.options.invite,
|
client.options.invite,
|
||||||
`with ${client.registry.commands.size} commands`,
|
`with ${client.registry.commands.size} commands`,
|
||||||
@@ -67,7 +67,7 @@ client.dispatcher.addInhibitor(msg => {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
client.login(TOKEN);
|
client.login(XIAO_TOKEN);
|
||||||
|
|
||||||
process.on('unhandledRejection', err => {
|
process.on('unhandledRejection', err => {
|
||||||
console.error('[FATAL] Unhandled Promise Rejection.', err);
|
console.error('[FATAL] Unhandled Promise Rejection.', err);
|
||||||
|
|||||||
Reference in New Issue
Block a user