fixed type in botID

This commit is contained in:
Loic Bersier 2018-09-18 13:29:16 +02:00
parent 137304369b
commit 64a27ca122

View file

@ -1,6 +1,6 @@
const { CommandoClient } = require('discord.js-commando'); const { CommandoClient } = require('discord.js-commando');
const path = require('path'); const path = require('path');
const { token, prefix, botid, statsChannel } = require('./config.json'); const { token, prefix, botID, statsChannel } = require('./config.json');
const responseObject = require("./reply.json"); const responseObject = require("./reply.json");
const fs = require("fs"); const fs = require("fs");
@ -30,7 +30,7 @@ client.registry
console.log(`Logged in as ${client.user.tag}! (${client.user.id})`); console.log(`Logged in as ${client.user.tag}! (${client.user.id})`);
console.log(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`); console.log(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
// Send stats to the "stats" channel in the support server if its not the test bot // Send stats to the "stats" channel in the support server if its not the test bot
if (client.user.id == botid) { if (client.user.id == botID) {
const channel = client.channels.get(statsChannel); const channel = client.channels.get(statsChannel);
channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`); channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
} }