creedoflies

Gift Command

May 11th, 2022 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. const base = `Hi ${t}. Someone has requested a random gift for YOU! You have received:`;
  2. const r = Math.floor(Math.random() * 6);
  3.  
  4. const trauma = ['Coal for Christmas', 'A Broken Arm', 'Messed up Solo at Band Concert', 'Parents Fighting', 'A Dead Carnival Goldfish'];
  5. const tarot = ['The Fool - https://bit.ly/3ytJQGY', 'The Magician - https://bit.ly/3N9Vn2v', 'The High Priestess - https://bit.ly/3M6Fw4C', 'The Empress - https://bit.ly/3l0Zv8Y', 'The Emperor - https://bit.ly/38drGyN', 'The Hierophant - https://bit.ly/3M3miwH', 'The Lovers - https://bit.ly/3KXBLx3', 'The Chariot - https://bit.ly/3M6HTo2', 'Strength - https://bit.ly/3L45eoT', 'The Hermit - https://bit.ly/3kVSbLP', 'Wheel of Fortune - https://bit.ly/3N9YqaX', 'Justice - https://bit.ly/3L7gAIK', 'The Hanged Man - https://bit.ly/3Fx77cJ', 'Death - https://bit.ly/3wch4JH', 'Temperance - https://bit.ly/3yBHrKi', 'The Devil - https://bit.ly/3yBHrKi', 'The Tower - https://bit.ly/37F1iNW', 'The Star - https://bit.ly/3stefBp', 'The Moon - https://bit.ly/3w0OuL6', 'The Sun - https://bit.ly/3w32OCK', 'Judgement - https://bit.ly/39SJbVr', 'The World - https://bit.ly/3M38vWQ'];
  6. const prize = ['A Brand New Car!', 'An all Expenses Paid Trip to Disney World!', 'A Cruise in the Bahammas!', 'One Million Dollars!'];
  7.  
  8. switch (r) {
  9. case 0:
  10. `${base} Nothing!`;
  11. break;
  12. case 1:
  13. `${base} Traumatic Childhood Experience: ${trauma[Math.floor(Math.random() * trauma.length)]}`;
  14. break;
  15. case 2:
  16. `${base} Tarot Serenade: ${tarot[Math.floor(Math.random() * tarot.length)]}`;
  17. break;
  18. case 3:
  19. `${base} ${Math.floor(Math.random() * 99) + 2} Hip Hip Hurrays!`;
  20. break;
  21. case 4:
  22. `${base} ${prize[Math.floor(Math.random() * prize.length)]}`;
  23. break;
  24. case 5:
  25. `${base} HUGS!!!`;
  26. break;
  27. default:
  28. 'There was an error.';
  29. }
Add Comment
Please, Sign In to add comment