Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. module.exports.run = (bot, message, args) => {
  4. const setStatus = args[0]
  5.  
  6. if(setStatus === 'idle'){
  7. bot.user.setStatus('idle')
  8. .then(message.channel.send("My status has been set to: "+setStatus))
  9. .catch(console.error);
  10. }
  11.  
  12. if(setStatus === 'online'){
  13. bot.user.setStatus('online')
  14. .then(message.channel.send("My status has been set to: "+ setStatus))
  15. .catch(console.error);
  16. }
  17.  
  18. if(setStatus === 'invisible'){
  19. bot.user.setStatus('invisible')
  20. .then(message.channel.send("My status has been set to: "+ setStatus))
  21. .catch(console.error);
  22. }
  23.  
  24. if(setStatus === 'dnd'){
  25. bot.user.setStatus('dnd')
  26. .then(message.channel.send("My status has been set to: "+ setStatus + "(do not disturb)"))
  27. .catch(console.error);
  28. }
  29. }
  30.  
  31. module.exports.help = {
  32. name: "status"
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement