Guest User

bomb v1.1

a guest
Jun 21st, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. {//; BLARGBOT TIMEBOMB COMMAND
  2.  
  3. * Created by k6ka#1014
  4. * Code is released under a Creative Commons Attribution-ShareAlike license
  5. * Give credit where credit is due!
  6. * See https://k6ka.blogspot.com/2020/05/timebomb-command-for-discord.html for instructions
  7.  
  8. Version 1.1 dated June 21, 2020
  9.  
  10. }
  11. {//;Check to see if the user left the command blank}
  12. {if;>;{argslength};0;
  13.  
  14. {//;Check to see if the user ID is valid}
  15. {set;~victim;{userid;{args};quiet}}
  16. {if;{get;~victim};==;;
  17. ❌ | Oops, I couldn't find the specified user in this server. Please specify a valid username or user ID.;
  18.  
  19. {//;If user tried to blow up blargbot}
  20. {if;{get;~victim};==;134133271750639616;❌ | You thought you could trick me into bombing myself, {usermention}?!;
  21. {//;If user tried to blow themselves up}
  22. {if;{get;~victim};==;{userid};❌ | Please, {usermention}! Pick a friend if you have to!;
  23. {//;If user tried to blow up a bot}
  24. {if;{userisbot;{get;~victim}};==;true;❌ | I'm not bombing one of my own kin, {usermention}! Pick a *human* to blow up.;
  25.  
  26. {//;Else, let the show continue}
  27.  
  28. {//;First, set the wire color}{set;~wireColor;{randchoose; 🔴 ; ⚪ ; 🔵 }}
  29. {//;Then we get the text version}{set;~wireColorText;
  30. {switch;{get;~wireColor};
  31. 🔴 ; red;
  32. ⚪ ; white;
  33. 🔵 ; blue;
  34. ❌ **FATAL ERROR**: No wire color was set!!!
  35. }
  36. }
  37.  
  38. {//;First message}
  39. {set;~msgid;{send;{channelid};💣 | {randchoose;
  40. ね, {usermention;{get;~victim}}, there's a stowaway in your pants! It's a bomb on a one minute timer. There are three wires: red, white, and blue. Click on the colour emoji below to cut that wire and try to defuse the bomb!;
  41. Hey {usermention;{get;~victim}}, someone shoved a bomb down your pants! There's one minute to go on the fuse, and there are three wires: red, white, and blue. Quick, click on the colour emoji below to tell me which wire to cut!;
  42. Watch out, {usermention;{get;~victim}}! There's a bomb strapped to your undies! The timer is set for one minute, and there are three wires: red, white, and blue. Click on the colour emoji below to cut that wire.;
  43. *Achtung!* There's a bomb down your pants, {usermention;{get;~victim}}! There's a one minute fuse on it, and there appears to be three wires: red, white, and blue. Given where it is, you should let me cut one of the wires for you{semi} click on the colour emoji below to tell me which one to cut!;
  44. Hey {usermention;{get;~victim}}, I saw someone put a bomb down your pants. One minute fuse, three wires: red, white, and blue. Time is running out! Click on the colour emoji below to cut that wire.
  45. }
  46. }
  47. }
  48. {//; Add the corresponding reactions to the message }
  49. {reactadd;{get;~msgid}; 🔴 ; ⚪ ; 🔵 }
  50. {//; Wait until user reacts one of the emojis provided }
  51. {void;
  52. {waitreaction;{get;~msgid};{userid;{get;~victim}};
  53. 🔴 ⚪ 🔵 ;
  54. {set;~reaction;{reaction}}
  55. }
  56. }
  57. {//; Get the content of the reaction }
  58. {switch;{get;~reaction};
  59. 🔴 ;
  60. {if;{get;~reaction};contains;{get;~wireColor};✅ | {execcc;bomb-successmsg};💥 | {execcc;bomb-failmsg} (You should have picked the {get;~wireColorText} wire) } {//; User reacted red};
  61. ⚪ ;
  62. {if;{get;~reaction};contains;{get;~wireColor};✅ | {execcc;bomb-successmsg};💥 | {execcc;bomb-failmsg} (You should have picked the {get;~wireColorText} wire) } {//; User reacted white};
  63. 🔵 ;
  64. {if;{get;~reaction};contains;{get;~wireColor};✅ | {execcc;bomb-successmsg};💥 | {execcc;bomb-failmsg} (You should have picked the {get;~wireColorText} wire) } {//; User reacted blue};
  65. 💥 | {randchoose;
  66. Oh come on, {usermention;{get;~victim}}, you could've at least picked something! Well, now you're dead. You see that? Guts everywhere.;
  67. Too slow, {usermention;{get;~victim}}. You were a sitting duck waiting for the bomb to go off. Try to save yourself next time!;
  68. Well, it looks like {usermention;{get;~victim}} failed to pick a wire in time. Their indecisveness sure paid off. With their death!;
  69. Please, {usermention;{get;~victim}}, you could've at least tried! Oh well. As the saying goes: you'll always lose if you don't try.;
  70. Hello? Earth to {usermention;{get;~victim}}? You were just bombed! Next time, you should tell me which wire to cut to try to save yourself from annihilation.} (You should have picked the {get;~wireColorText} wire) {//; User didn't react and timed out }
  71. }
  72. }
  73. }
  74. }
  75. }
  76.  
  77. {//;If command was left empty}
  78. ;💣 | Type ``b!bomb <username>`` to throw a bomb at someone! They have one minute to cut the correct wire or they will be blown to smithereens! Mentions will work, as will user IDs.
  79. }
Add Comment
Please, Sign In to add comment