Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- login to "NjQ4OTM3NDMzNzUyMTQxODM2.XeuTzQ.cHmHBQ_H_LhJwMPuK3Ha67hd5JU" with name "Keenu"
- mark "Keenu" youtube.com/keenuyt"
- discord command help:
- prefixes: $
- trigger:
- reply with "$ticket - Opens a new ticket%nl%$rank [@user] - See ur rank or another users rank%nl%$status - see the bot status"
- discord command $close:
- roles: Ticket team
- trigger:
- if {ticket.%event-channel%} is set:
- make embed:
- set title of embed to "**Ticket closed**"
- 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 !"
- set the color of embed to gray
- set the timestamp of embed to now
- send the embed to event-channel with event-bot
- send the embed to {ticket.%event-channel%} with event-bot
- wait 10 seconds
- delete discord entity event-channel
- else:
- make embed:
- set title of embed to "**Error**"
- set description of embed to "This is not ticket !"
- set the color of embed to red
- set the timestamp of embed to now
- send the embed to event-channel with event-bot
- discord command ticket:
- prefixes: $
- trigger:
- set {_r} to random 8 char string from charset `a-zA-Z0-9`
- create text channel:
- set the name of the channel to "ticket-%{_r}%"
- create the last made channel in event-guild and store it in {_chnl}
- allow event-member permission message write in {_chnl} with event-bot
- allow event-member permission message read in {_chnl} with event-bot
- deny the public role of event-guild permission message write in {_chnl} with event-bot
- deny the public role of event-guild permission message read in {_chnl} with event-bot
- send "Welcome to your ticket %mention tag of event-member% !" to {_chnl} with event-bot
- set {ticket.%{_chnl}%} to mention tag of event-user
- reply with "I have created your ticket, %mention tag of event-user%"
- discord command status:
- prefixes: $
- trigger:
- set {_bot} to "Keenu"
- set {_ping} to random integer between 20 and 70
- make embed:
- set title of embed to "Compone status"
- set description of embed to "Uptime: %uptime of {_bot}%%nl%Ping: %{_ping}%ms"
- set timestamp of embed to now
- set color of embed to gray
- send the embed to event-channel with "Keenu"
- discord command rank [<member>]:
- prefixes: $
- trigger:
- if arg 1 is not set:
- if {level::%discord id of event-member%} is not set:
- set {level::%discord id of event-member%} to 0
- if {xp::%discord id of event-member%} is not set:
- set {xp::%discord id of event-member%} to 0
- make embed:
- set title of embed to "Your rank"
- set description of embed to "XP: %{xp::%discord id of event-member%}%/100%nl%LEVEL: %{level::%discord id of event-member%}%"
- set the timestamp of embed to now
- set the color of embed to gray
- send the embed to event-channel with "Keenu"
- if arg 1 is set:
- if {level::%discord id of arg-1%} is not set:
- set {level::%discord id of arg-1%} to 0
- if {xp::%discord id of arg-1%} is not set:
- set {xp::%discord id of arg-1%} to 0
- make embed:
- set title of embed to "%arg-1%'s rank"
- set description of embed to "XP: %{xp::%discord id of arg-1%}%/100%nl%LEVEL: %{level::%discord id of arg-1%}%"
- set the timestamp of embed to now
- set the color of embed to gray
- send the embed to event-channel with "Keenu"
- on guild message received seen by "Keenu":
- if discord id of event-guild is "652837032971862016":
- if discord id of event-member is not "648937433752141836":
- if {xp::%discord id of event-member%} is not set:
- set {xp::%discord id of event-member%} to 0
- if {xp::%discord id of event-member%} is not 101:
- add 1 to {xp::%discord id of event-member%}
- if {xp::%discord id of event-member%} is 100:
- set {xp::%discord id of event-member%} to 0
- if {level::%discord id of event-member%} is not set:
- set {level::%discord id of event-member%} to 0
- add 1 to {level::%discord id of event-member%}
- make embed:
- set title of embed to "%event-member% leveled up"
- set description of embed to "%event-member% Have leveled up !%nl%Current level of %event-member%: {level::%discord id of event-member%}"
- set the timestamp of embed to now
- set the color of embed to green
- send the embed to event-channel with "Keenu"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement