cardboardbox/events/ready.js

8 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"});
};