forked from Supositware/Haha-Yes
Added default activity
This commit is contained in:
parent
ebb4575e62
commit
512080c714
1 changed files with 3 additions and 0 deletions
3
index.js
3
index.js
|
@ -24,11 +24,14 @@ client.registry
|
|||
.registerCommandsIn(path.join(__dirname, 'commands'));
|
||||
// Ready messages
|
||||
client.on('ready', () => {
|
||||
// Send stats to the console
|
||||
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}`);
|
||||
// Send stats to the "stats" channel in the support server
|
||||
const channel = client.channels.get('487766113292124160');
|
||||
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}`);
|
||||
|
||||
client.user.setActivity('"haha" or @me for help');
|
||||
});
|
||||
// When bot join a guild send embeds with details about it.
|
||||
client.on("guildCreate", guild => {
|
||||
|
|
Loading…
Reference in a new issue