Advertisement
Guest User

d

a guest
Feb 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. module.exports.run = async (bot, message, args) => {
  2.  
  3. if (!args[0]) return message.channel.send("Gebruik: +sps <steen, papier, schaar>");
  4.  
  5. var options = ["steen", "papier", "schaar"];
  6.  
  7. var result = options[Math.floor(Math.random() * options.lenght)];
  8.  
  9. if (args[0] == "steen") {
  10.  
  11. if (result == "papier") {
  12.  
  13. message.channel.send(`Ik heb ${result} :notepad_spiral:, Ik heb gewonnen!`);
  14.  
  15. } else if (result == "schaar") {
  16. message.channel.send(`Ik heb ${result} :scissors:, Jij hebt gewonnen!`);
  17. } else if (result == "steen") {
  18. message.channel.send(`Ik heb ${result} :moyai:, Het is gelijkspel!`);
  19.  
  20.  
  21.  
  22.  
  23. }
  24.  
  25.  
  26. }
  27.  
  28. else if (args[0] == "papier") {
  29.  
  30. if (result == "steen") {
  31.  
  32. message.channel.send(`Ik heb ${result} :moyai:, Jij hebt gewonnen!`);
  33.  
  34. } else if (result == "schaar") {
  35. message.channel.send(`Ik heb ${result} :scissors:, Ik heb gewonnen!`);
  36. } else if (result == "papier") {
  37. message.channel.send(`Ik heb ${result} :notepad_spiral:, Het is gelijkspel!`);
  38.  
  39.  
  40.  
  41.  
  42. }
  43.  
  44.  
  45.  
  46. }
  47.  
  48. else if (args[0] == "schaar") {
  49.  
  50. if (result == "steen") {
  51.  
  52. message.channel.send(`Ik heb ${result} :moyai:, Ik heb gewonnen!`);
  53.  
  54. } else if (result == "papier") {
  55. message.channel.send(`Ik heb ${result} :notepad_spiral:, Jij hebt gewonnen!`);
  56. } else if (result == "schaar") {
  57. message.channel.send(`Ik heb ${result} :scissors:, Het is gelijkspel!`);
  58.  
  59.  
  60.  
  61.  
  62. }
  63.  
  64.  
  65.  
  66. }
  67.  
  68. }
  69.  
  70. module.exports.help = {
  71. name: "sps"
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement