Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- NameBot: ImmoBot
- token: NjMwNzgwMTk3Nzc5NjY4OTky.XZtauA.psYD7a6S9GF5arEJFOB1vALCylw
- prefixes: /
- commandlinkdiscord: link
- Joueà: Link MC #Personnalise le joue à du bot !
- commandlink: /link
- commandunlinkadm: /unlink
- permissionunlink: perm.unlink
- PermissionViewHelp: essentials.helpop.receive
- Message.code1: Votre code de vérification : %{_e}%
- Message.erreurcode1: &cVous êtes déjà relié a un compte discord !
- messageaidediscord: Le joueur %event-member% souhaite obtenir de l'aide. [@here]
- messageaidemc: &8&l[&2Discord&8&l] &7Le joueur &b%event-member% &7souhaite obtenir de l'aide. %nl% &8[&6Move&8]
- on script load:
- login to "{@token}" with name "{@NameBot}"
- command {@commandlink}:
- trigger:
- if {discord::DISCORD::%player%} isn't set:
- set {_e} to random 6 char string from charset `a-zA-Z0-9`
- set {code::%{_e}%} to player
- message "{@Message.code1}"
- else:
- send "{@Message.erreurcode1}"
- command {@commandunlinkadm} [<offline player>]:
- permission: {@permissionunlink}
- trigger:
- if arg 1 is set:
- if {discord::DISCORD::%arg 1%} is set:
- clear {discord::MC::%{discord::DISCORD::%arg-1%}%}
- clear {discord::DISCORD::%arg 1%}
- send "&cUnlinked !"
- else:
- send "&cCe joueur n'est pas linked."
- else:
- send "&c{@commandunlinkadm} <player>"
- discord command {@commandlinkdiscord} [<text>]:
- prefixes: {@prefixes}
- executable in: guild
- trigger:
- if arg 1 is not set:
- reply with "Veuillez entrer votre code de vérification si vous en avez pas execute /link ingame."
- else if {code::%arg 1%} is not set:
- reply with "S'il vous plaît, tapez /link ingame pour obtenir votre code de vérification."
- else if {code::%arg 1%} is set:
- delete event-message with "{@NameBot}"
- set {discord::MC::%discord id of event-member%} to {code::%arg-1%}
- set {discord::DISCORD::%{code::%arg-1%}%} to discord id of event-member
- reply with "Votre compte minecraft : %{code::%arg-1%}% à bien été relié à votre compte discord !"
- delete {code::%arg-1%}
- on voice channel join:
- if discord id of event-channel is "587009838911848449":
- join voice channel of event-member
- wait 2 second
- play "https://www.youtube.com/watch?v=z_m0wtLMfdU" in guild with id "582232653000998914" with "{@NameBot}"
- set the volume of event-bot to 10
- resume the track event-bot is playing
- if {discord::MC::%discord id of event-member%} is set:
- send "{@messageaidediscord}" to channel with id "624308661228929024" with "{@NameBot}"
- loop all players:
- loop-player has permission "{@PermissionViewHelp}"
- send "{@messageaidemc}" to loop-player
- else:
- stop
- on voice channel leave:
- if discord id of event-channel is "587009838911848449":
- make event-bot leave vc
- command /viewlink [<offline player>]:
- trigger:
- if arg 1 is set:
- if {discord::DISCORD::%arg-1%} is set:
- send "Le joueur %arg 1% est link avec le compte discord : %{discord::DISCORD::%arg-1%}%"
- else:
- send "Le joueur %arg 1% n'es pas link avec un compte discord."
- else:
- send "Erreur : /viewlink <joueur>"
- on voice channel join:
- if discord id of event-channel is "582630794195894295":
- add 1 to {private1}
- on voice channel leave:
- if discord id of event-channel is "582630794195894295":
- add -1 to {private1}
- command /private1:
- permission: op
- permission message: &cCommande non trouvée, faites /help
- trigger:
- send "&b%{private1}%"
- # ###################################################################"
- discord command $shutdown:
- executable in: guild
- trigger:
- if event-member has role named "『💻』Équipe de développement" or "『👑』Équipe d'administration" or "『🎓』Fondateur":
- delete event-message with "{@NameBot}"
- reply with "Extinction des feux !"
- shutdown event-bot
- command /wakeup:
- permission: op
- permission message: &cCommande non trouvée, faites /help
- trigger:
- login to "{@token}" with name "{@NameBot}"
- send "&aBOT allumé"
- on direct message received:
- reply with "**Je ne prend pas en compte les messages privés !**"
- wait 5 seconds
- delete event-message with "{@NameBot}"
- # ###################################################################
- discord command $addstaff <user>:
- executable in: guild
- trigger:
- if event-member has role named "『👑』Équipe d'administration" or "『🎓』Fondateur":
- loop {List_Of_Staffs::*}:
- if loop-value is discord id of arg-1:
- reply with "Le joueur %discord name of arg-1% fais déjà partie de la liste de staffs."
- stop
- add discord id of arg-1 to {List_Of_Staffs::*}
- reply with "Le joueur %discord name of arg-1% vient d'être ajouter à la listes des staffs."
- delete event-message with "{@NameBot}"
- discord command $removestaff <user>:
- executable in: guild
- trigger:
- if event-member has role named "『👑』Équipe d'administration" or "『🎓』Fondateur":
- loop {List_Of_Staffs::*}:
- if loop-value is discord id of arg-1:
- remove discord id of arg-1 from {List_Of_Staffs::*}
- reply with "Le joueur %discord name of arg-1% vient d'être retirer de la listes des staffs."
- delete event-message with "{@NameBot}"
- stop
- reply with "Le joueur %discord name of arg-1% n'est pas dans la listes des staffs."
- discord command $liststaff:
- executable in: guild
- trigger:
- loop {List_Of_Staffs::*}:
- set {_lu} to user with id loop-value
- add "%discord id of {_lu}% > %discord name of {_lu}%" to {_List_Of_Staffs::*}
- make embed:
- set the colour of the embed to Cyan
- add field named "List :" with value "%{_List_Of_Staffs::*}%" to embed
- set title of the embed to "List staff !"
- reply with last created embed
- delete event-message with "{@NameBot}"
- on join:
- if {discord::DISCORD::%player%} is set:
- loop {List_Of_Staffs::*}:
- if loop-value is {discord::DISCORD::%player%}:
- add player to {NonValidé::*}
- send "%{NonValidé::*}%"
- set {code.%player%} to a random alphanumerical text of length 9
- send "Voici votre code : %{code.%player%}%" to user with id {discord::DISCORD::%player%} with "{@NameBot}"
- while {NonValidé::*} contains player:
- if {Location.%player%} isn't location of player:
- teleport player at {Location.%player%}
- send "&cVeuillez entrer le code reçu sur votre discord. /Code <code>"
- wait 5 ticks
- on chat:
- loop {NonValidé::*}:
- if loop-value is player:
- cancel event
- send "&cVeuillez entrer le code reçu sur votre discord. /Code <code>"
- set {Location.%player%} to location of player
- on command:
- loop {NonValidé::*}:
- if loop-value is player:
- if command isn't "code" or "/code":
- cancel event
- send "&cVeuillez entrer le code reçu sur votre discord. /Code <code>"
- stop
- command /code [<text>]:
- trigger:
- loop {NonValidé::*}:
- if loop-value is player:
- set {_true} to true
- if {_true} is true:
- if arg 1 is {code.%player%}:
- send "Code validé !"
- remove all player from {NonValidé::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement