Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. on load:
  2. login to "NjQ4OTM3NDMzNzUyMTQxODM2.XeuTzQ.cHmHBQ_H_LhJwMPuK3Ha67hd5JU" with name "Keenu"
  3. mark "Keenu" youtube.com/keenuyt"
  4.  
  5. discord command help:
  6. prefixes: $
  7. trigger:
  8. reply with "$ticket - Opens a new ticket%nl%$rank [@user] - See ur rank or another users rank%nl%$status - see the bot status"
  9.  
  10. discord command $close:
  11. roles: Ticket team
  12. trigger:
  13. if {ticket.%event-channel%} is set:
  14. make embed:
  15. set title of embed to "**Ticket closed**"
  16. set description of embed to "%{ticket.%event-channel%}%'s ticket has been closed by %mention tag of event-member%%nl%Deleting this ticket in 10 seconds !"
  17. set the color of embed to gray
  18. set the timestamp of embed to now
  19. send the embed to event-channel with event-bot
  20. send the embed to {ticket.%event-channel%} with event-bot
  21. wait 10 seconds
  22. delete discord entity event-channel
  23. else:
  24. make embed:
  25. set title of embed to "**Error**"
  26. set description of embed to "This is not ticket !"
  27. set the color of embed to red
  28. set the timestamp of embed to now
  29. send the embed to event-channel with event-bot
  30.  
  31. discord command ticket:
  32. prefixes: $
  33. trigger:
  34. set {_r} to random 8 char string from charset `a-zA-Z0-9`
  35. create text channel:
  36. set the name of the channel to "ticket-%{_r}%"
  37. create the last made channel in event-guild and store it in {_chnl}
  38. allow event-member permission message write in {_chnl} with event-bot
  39. allow event-member permission message read in {_chnl} with event-bot
  40. deny the public role of event-guild permission message write in {_chnl} with event-bot
  41. deny the public role of event-guild permission message read in {_chnl} with event-bot
  42. send "Welcome to your ticket %mention tag of event-member% !" to {_chnl} with event-bot
  43. set {ticket.%{_chnl}%} to mention tag of event-user
  44. reply with "I have created your ticket, %mention tag of event-user%"
  45.  
  46. discord command status:
  47. prefixes: $
  48. trigger:
  49. set {_bot} to "Keenu"
  50. set {_ping} to random integer between 20 and 70
  51. make embed:
  52. set title of embed to "Compone status"
  53. set description of embed to "Uptime: %uptime of {_bot}%%nl%Ping: %{_ping}%ms"
  54. set timestamp of embed to now
  55. set color of embed to gray
  56. send the embed to event-channel with "Keenu"
  57.  
  58. discord command rank [<member>]:
  59. prefixes: $
  60. trigger:
  61. if arg 1 is not set:
  62. if {level::%discord id of event-member%} is not set:
  63. set {level::%discord id of event-member%} to 0
  64. if {xp::%discord id of event-member%} is not set:
  65. set {xp::%discord id of event-member%} to 0
  66. make embed:
  67. set title of embed to "Your rank"
  68. set description of embed to "XP: %{xp::%discord id of event-member%}%/100%nl%LEVEL: %{level::%discord id of event-member%}%"
  69. set the timestamp of embed to now
  70. set the color of embed to gray
  71. send the embed to event-channel with "Keenu"
  72. if arg 1 is set:
  73. if {level::%discord id of arg-1%} is not set:
  74. set {level::%discord id of arg-1%} to 0
  75. if {xp::%discord id of arg-1%} is not set:
  76. set {xp::%discord id of arg-1%} to 0
  77. make embed:
  78. set title of embed to "%arg-1%'s rank"
  79. set description of embed to "XP: %{xp::%discord id of arg-1%}%/100%nl%LEVEL: %{level::%discord id of arg-1%}%"
  80. set the timestamp of embed to now
  81. set the color of embed to gray
  82. send the embed to event-channel with "Keenu"
  83.  
  84. on guild message received seen by "Keenu":
  85. if discord id of event-guild is "652837032971862016":
  86. if discord id of event-member is not "648937433752141836":
  87. if {xp::%discord id of event-member%} is not set:
  88. set {xp::%discord id of event-member%} to 0
  89. if {xp::%discord id of event-member%} is not 101:
  90. add 1 to {xp::%discord id of event-member%}
  91. if {xp::%discord id of event-member%} is 100:
  92. set {xp::%discord id of event-member%} to 0
  93. if {level::%discord id of event-member%} is not set:
  94. set {level::%discord id of event-member%} to 0
  95. add 1 to {level::%discord id of event-member%}
  96. make embed:
  97. set title of embed to "%event-member% leveled up"
  98. set description of embed to "%event-member% Have leveled up !%nl%Current level of %event-member%: {level::%discord id of event-member%}"
  99. set the timestamp of embed to now
  100. set the color of embed to green
  101. send the embed to event-channel with "Keenu"
  102. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement