cardboardbox/events/ready.js
2019-11-26 16:22:24 -05:00

7 lines
376 B
JavaScript

module.exports = async client => {
// Log that the bot is online.
client.logger.log(`${client.user.tag}, ready to serve ${client.users.size} users in ${client.guilds.size} servers.`, "ready");
// Make the bot "play the game" which is the help command with default prefix.
client.user.setActivity(`${client.settings.get("default").prefix}help`, {type: "PLAYING"});
};