Replace Idle & Online Commands with Status Command#192
Replace Idle & Online Commands with Status Command#192FdwZ47 wants to merge 1 commit intochalda:masterfrom FdwZ47:patch-1
Conversation
so i just make changes with idle and online commands and make it in one command for example if you want to set it to online just type status online and it will change / you can also use this method to make a command that change the bot activity type and content
| description: "Sets bot status to online.", | ||
| process: function (bot, msg, suffix) { | ||
| bot.user.setStatus("online").then(console.log).catch(console.error); | ||
| if(massage.author.id !== yor id here) return; // here you check if the message auhor id was the same (so only you can use it) |
There was a problem hiding this comment.
I would probably remove this line and let people restrict command access via the permission system. Otherwise the bot might break if someone doesn't manually edit this line.
There was a problem hiding this comment.
+1 on using the permission system to restrict access. Could make it a default restricted command if we're worried about it, although changing the bot's status is relatively harmless.
Einarin
left a comment
There was a problem hiding this comment.
This is a good change. The reason online and idle are separate commands is that once upon a time they were used to set the bot's "now playing" status as well.
| description: "Sets bot status to online.", | ||
| process: function (bot, msg, suffix) { | ||
| bot.user.setStatus("online").then(console.log).catch(console.error); | ||
| if(massage.author.id !== yor id here) return; // here you check if the message auhor id was the same (so only you can use it) |
There was a problem hiding this comment.
+1 on using the permission system to restrict access. Could make it a default restricted command if we're worried about it, although changing the bot's status is relatively harmless.
so i just make changes with idle and online commands and make it in one command for example if you want to set it to online just type
status online
and it will change / you can also use this method to make a command that change the bot activity type and content