Adding status!
This commit is contained in:
parent
d4c29573c9
commit
797cb48b93
9
main.js
9
main.js
|
@ -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!");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue