Guest User

Untitled

a guest
Oct 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. const prefix = "$"
  2.  
  3. var Fortune = [
  4. // Random Aswers
  5. ];
  6.  
  7. var args = message.content.substring(prefix.length).split(" ");
  8.  
  9.  
  10. switch (args[0]) {
  11. case "RV":
  12. case 'RandomValue':
  13. message.channel.sendMessage(Math.floor(Math.random()*100)+1);
  14. break;
  15. case "8ball":
  16. if(args[1]) {
  17. message.channel.sendMessage("**Question:** "+args[arguments.length]+"n"+"**8-Ball says:** "+Fortune[Math.floor(Math.random()*Fortune.length)]);
  18. }
  19. else {
  20. message.channel.sendMessage("Can't read that")
  21. }
  22. break;
  23. default:
  24. message.channel.sendMessage("Invalid Command");
  25. }
Add Comment
Please, Sign In to add comment