Add set presence for the bot
This commit is contained in:
parent
35379aaf49
commit
6bfa3dec46
1 changed files with 15 additions and 0 deletions
15
commands/setPresence.js
Normal file
15
commands/setPresence.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
module.exports = {
|
||||
name: 'setPresence',
|
||||
description: 'Set the presence for the bot',
|
||||
admin: true,
|
||||
execute({message, client, args}) {
|
||||
|
||||
let presenceType = args[0].toLocaleUpperCase();
|
||||
if(presenceType != "PLAY" || presenceType != "LISTEN" || presenceType != "WATCH") return;
|
||||
|
||||
args = args.slice(args[0].length, args.length)
|
||||
let presenceText = args.join(" ");
|
||||
client.user.setActivity(presenceText, { type: presenceType });
|
||||
message.channel.send("Updated presence.")
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue