Advertisement
BlackKnight683

Warn & Reason Command BCFD

Nov 21st, 2020
2,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. Warn Base Command :~
  2.  
  3. $eval
  4. var message = "$messageAfterCommand"
  5. var check = "$mentionedID"
  6. var user$mentionedID = "$mentionedNamePlain"
  7. var reason$mentionedID = "Add a reason using `!reason`"
  8. var reply = "something went wrong :P";
  9.  
  10. if(check === "$mentionedID") {
  11. var warn$mentionedID = "true"
  12. var reply = "**Succesfully warned $mentionedName**" +
  13. " " + " " + "" + reason$mentionedID}
  14.  
  15. //Made by •OofyOofOof•#2018
  16. //You can DM me if any bugs :P
  17.  
  18. if(check === "$ID") {var reply = "You can't warn urself 🤦"}
  19.  
  20. if(check === "$botID") {var reply = "Yeah... nO"}
  21.  
  22. $halt $get(reply)
  23.  
  24. Reason Base Command :~
  25.  
  26. $eval
  27. try{
  28. //Made by •OofyOofOof•#2018
  29. //You can DM me if any bugs :P
  30. var check = "$mentionedID"
  31. var reply = "You can't add a reason to a not warned user..."
  32. if(warn$mentionedID === "true" && check === "$mentionedID") {
  33. var reasonNo$mentionedID = "$random{AGS|AUD|KAD|OAD}-$rollnum(100,5000)"
  34.  
  35. var reason$mentionedID = "$messageAfterCommand"
  36. var reply = "Added the provided reason"}
  37.  
  38. if(check === "$ID") {var reply = "you can't warn yourself"}
  39.  
  40. if(check === "$botID") {var reply = "Yeah..... nO"}
  41. }catch(OofyOofOof){var reply = "You can't add a reason to a not warned user..."}
  42. $halt $get(reply)
  43.  
  44. Warnings Base Command :~
  45.  
  46. $eval
  47. try{
  48. //Made by •OofyOofOof•#2018
  49. //You can DM me if any bugs :P
  50. var warning = "Warn ID = `" + reasonNo$mentionedID + "`" +
  51. " " + " " + "Staff warned **" + reason$mentionedID + "**"
  52. }catch(OofyOofOof){var warning = "**No warning associated with that user**"}
  53. $halt $get(warning)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement