Advertisement
KingOfGamesss

Untitled

Sep 8th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. discord command -t [<string>] [<text>]:
  2. trigger:
  3. if arg-1 is "new":
  4.  
  5. if {ticked::created::user::%event-user%} is true:
  6. make embed:
  7. set description of embed to ":x: %mention tag of event-user%, You already have ticket!"
  8. set footer of embed to footer with text "Made with <3 by nUKEmAN4##3346"
  9. set color of the embed to red
  10. send last embed to event-channel with "Ticket.ty"
  11. stop
  12.  
  13. set {_ticketname} to "ticket-%event-user%"
  14. create text channel:
  15. set name of the channel to "ticket-%event-user%"
  16. set {ticket.%event-user%} to true
  17. set the topic of the channel to "%mention tag of event-user%'s Support Ticket"
  18. set the parent of the channel to category named "TICKETS" in guild with id "620333335776067594"
  19. create channel in guild with id "620333335776067594" and store it in {_channel}
  20. set {id::%event-user%} to {_channel}.getId()
  21. set {channel::name::%{id::%event-user%}%} to "%event-user%"
  22. set {ticked::created::user::%event-user%} to true
  23. set {channel::user::id::%event-user%} to {id::%event-user%}
  24. set {ticked::created::id::channel::%{id::%event-user%}%} to "%event-user%"
  25. set {ticked::created::user::%event-user%} to true
  26. set {_send.%{_id::%event-user%}%} to discord id of event-user
  27. allow event-member the permission view channel in channel with id "%{id::%event-user%}%"
  28. allow event-member the permission message read in channel with id "%{id::%event-user%}%"
  29. allow event-member the permission message write in channel with id "%{id::%event-user%}%"
  30.  
  31.  
  32. wait 10 ticks
  33. make embed:
  34. set description of embed to "%mention tag of event-user%'s Support Ticket"
  35. set footer of embed to footer with text "Made with <3 by nUKEmAN4##3346"
  36. if arg-2 is set:
  37. set {_reason} to arg-2
  38. else:
  39. set {_reason} to "No specific reason"
  40. add split field named "Message of **%event-user%**: %nl% %{_reason}%" to the embed
  41. set color of the embed to yellow
  42. send last embed to channel with id "%{id::%event-user%}%" with "Ticket.ty"
  43.  
  44. make embed:
  45. set description of embed to "%mention tag of event-user%, Your ticket has been created."
  46. set footer of embed to footer with text "Made with <3 by nUKEmAN4##3346"
  47. set color of the embed to yellow
  48. send last embed to event-channel with "Ticket.ty"
  49.  
  50. stop
  51. if arg-1 is "close":
  52. if discord id of parent of event-channel is "620333892129390605":
  53. set {_id} to event-channel.getId()
  54. set {_player} to "%{_channelname}%"
  55. delete {ticked::created::user::%{channel::name::%{id::%{_id}%}%}%}
  56. delete {ticked::created::user::%{_player}%}
  57. wait 5 ticks
  58. delete event-channel
  59.  
  60.  
  61. else:
  62. make embed:
  63. set description of embed to ":x: This is not Ticket channel!"
  64. set footer of embed to footer with text "Made with <3 by nUKEmAN4##3346"
  65. set color of the embed to red
  66. send last embed to event-channel with "Ticket.ty"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement