SHARE
TWEET

Untitled

a guest Aug 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top