Adding status!

This commit is contained in:
Patrick Hatsune 2024-05-10 09:22:38 -07:00
parent d4c29573c9
commit 797cb48b93

View file

@ -35,6 +35,15 @@ for (const folder of commandFolders) {
} }
client.once(Events.ClientReady, readyClient => { client.once(Events.ClientReady, readyClient => {
try {
client.user.setPresence({ activities: [{ name: 'Use /help - MBot' }], status: 'idle' });
console.log(informationStatus + `Activity has been set to '${client.user.presence.activities}'`);
console.log(informationStatus + `Status has been set to ${client.user.presence.status}`);
} catch (error) {
console.log(errorStatus + "Something went wrong with setting the status! Debug information below.");
console.error(error);
}
console.log(informationStatus + "Client is online!"); console.log(informationStatus + "Client is online!");
}); });