Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. const commando = require('discord.js-commando');
  2.  
  3. class CoinFlipCommand extends commando-Command
  4. {
  5.  
  6. constructor(client)
  7. {
  8. super(client,{
  9. name: 'flip',
  10. group: 'simple',
  11. description 'Flips a coin, landing on either Heads or Tails'
  12. });
  13. }
  14.  
  15. async run(message, args)
  16. {
  17. var chance = math.floor(mathf.random()) * 2);
  18. if(chanse == 0)
  19. {
  20. message.reply("Your coin landed on Heads");
  21. }
  22. else
  23. {
  24. message.reply("tour Coin landed on Tails");
  25. }
  26. }
  27.  
  28. }
  29.  
  30. module.exports = CoinFlipCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement