Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.85 KB | None | 0 0
  1. options:
  2. NameBot: ImmoBot
  3. token: NjMwNzgwMTk3Nzc5NjY4OTky.XZtauA.psYD7a6S9GF5arEJFOB1vALCylw
  4. commandlinkdiscord: link
  5.  
  6. commandlink: /link
  7. commandunlinkadm: /unlink
  8. permissionunlink: perm.unlink
  9.  
  10. PermissionViewHelp: essentials.helpop.receive
  11.  
  12. Message.code1: Votre code de vérification : %{_e}%
  13. Message.erreurcode1: &cVous êtes déjà relié a un compte discord !
  14.  
  15. messageaidediscord: Le joueur %event-member% souhaite obtenir de l'aide. [@here]
  16. messageaidemc: &8&l[&2Discord&8&l] &7Le joueur &b%event-member% &7souhaite obtenir de l'aide. %nl% &8[&6Move&8]
  17.  
  18. messageCodeDejaDonner: Nous vous avons déjà communiquer un code pour link. ( Rappel >#Pas mettre de ")", il se met automatiquement#
  19.  
  20.  
  21. on script load:
  22. login to "{@token}" with name "{@NameBot}"
  23.  
  24. command {@commandlink}:
  25. trigger:
  26. if {discord.DISCORD::%player%} isn't set:
  27. if {code::%player%} is set:
  28. send "{@messageCodeDejaDonner} %{code::%player%}% )"
  29. stop
  30. set {_e} to random 6 char string from charset `a-zA-Z0-9`
  31. set {code::%{_e}%} to player
  32. set {code::%player%} to {_e}
  33. message "{@Message.code1}"
  34. else:
  35. send "{@Message.erreurcode1}"
  36.  
  37. command {@commandunlinkadm} [<offline player>]:
  38. permission: {@permissionunlink}
  39. trigger:
  40. if arg 1 is set:
  41. if {discord.DISCORD::%arg 1%} is set:
  42. clear {discord.MC::%{discord.DISCORD::%arg-1%}%}
  43. clear {discord.DISCORD::%arg 1%}
  44. send "&cUnlinked !"
  45. else:
  46. send "&cCe joueur n'est pas linked."
  47. else:
  48. send "&c{@commandunlinkadm} <player>"
  49.  
  50. discord command ${@commandlinkdiscord} [<text>]:
  51. executable in: guild
  52. trigger:
  53. if arg 1 is not set:
  54. reply with "Veuillez entrer votre code de vérification si vous en avez pas execute /link ingame."
  55. else if {code::%arg 1%} is not set:
  56. reply with "S'il vous plaît, tapez /link ingame pour obtenir votre code de vérification."
  57. else if {code::%arg 1%} is set:
  58. delete event-message with "{@NameBot}"
  59. set {discord.MC::%discord id of event-member%} to {code::%arg-1%}
  60. set {discord.DISCORD::%{code::%arg-1%}%} to discord id of event-member
  61. reply with "Votre compte minecraft : %{code::%arg-1%}% à bien été relié à votre compte discord !"
  62. delete {code::%{code::%arg-1%}%}
  63. wait 2 seconds
  64. delete {code::%arg-1%}
  65.  
  66. on voice channel join:
  67. if discord id of event-channel is "587009838911848449":
  68. join voice channel of event-member
  69. wait 2 second
  70. play "https://www.youtube.com/watch?v=z_m0wtLMfdU" in guild with id "582232653000998914" with "{@NameBot}"
  71. set the volume of event-bot to 10
  72. resume the track event-bot is playing
  73. if {discord.MC::%discord id of event-member%} is set:
  74. send "{@messageaidediscord}" to channel with id "624308661228929024" with "{@NameBot}"
  75. loop all players:
  76. loop-player has permission "{@PermissionViewHelp}"
  77. send "{@messageaidemc}" to loop-player
  78. else:
  79. stop
  80. on voice channel leave:
  81. if discord id of event-channel is "587009838911848449":
  82. make event-bot leave vc
  83. command /viewlink [<offline player>]:
  84. trigger:
  85. if arg 1 is set:
  86. if {discord.DISCORD::%arg-1%} is set:
  87. send "Le joueur %arg 1% est link avec le compte discord : %{discord.DISCORD::%arg-1%}%"
  88. else:
  89. send "Le joueur %arg 1% n'es pas link avec un compte discord."
  90. else:
  91. send "Erreur : /viewlink <joueur>"
  92. on voice channel join:
  93. if discord id of event-channel is "582630794195894295":
  94. add 1 to {private1}
  95. on voice channel leave:
  96. if discord id of event-channel is "582630794195894295":
  97. add -1 to {private1}
  98. command /private1:
  99. permission: op
  100. permission message: &cCommande non trouvée, faites /help
  101. trigger:
  102. send "&b%{private1}%"
  103. # ###################################################################"
  104. discord command $shutdown:
  105. executable in: guild
  106. trigger:
  107. if event-member has role named "『💻』Équipe de développement" or "『👑』Équipe d'administration" or "『🎓』Fondateur":
  108. delete event-message with "{@NameBot}"
  109. reply with "Extinction des feux !"
  110. shutdown event-bot
  111. command /wakeup:
  112. permission: op
  113. permission message: &cCommande non trouvée, faites /help
  114. trigger:
  115. login to "{@token}" with name "{@NameBot}"
  116. send "&aBOT allumé"
  117. on direct message received:
  118. reply with "**Je ne prend pas en compte les messages privés !**"
  119. wait 5 seconds
  120. delete event-message with "{@NameBot}"
  121. # ###################################################################
  122.  
  123.  
  124. discord command $addstaff <user>:
  125. executable in: guild
  126. trigger:
  127. if {discord.MC::%discord id of arg-1%} is set:
  128. if event-member has role named "『👑』Équipe d'administration" or "『🎓』Fondateur":
  129. loop {List_Of_Staffs::*}:
  130. if loop-value is discord id of arg-1:
  131. reply with "Le joueur %discord name of arg-1% fais déjà partie de la liste de staffs."
  132. stop
  133.  
  134. add discord id of arg-1 to {List_Of_Staffs::*}
  135. reply with "Le joueur %discord name of arg-1% vient d'être ajouter à la listes des staffs."
  136. delete event-message with "{@NameBot}"
  137. else:
  138. reply with "Cette utilisateur n'a pas link sont compte sur MC."
  139.  
  140.  
  141. discord command $removestaff <user>:
  142. executable in: guild
  143. trigger:
  144. if event-member has role named "『👑』Équipe d'administration" or "『🎓』Fondateur":
  145. loop {List_Of_Staffs::*}:
  146. if loop-value is discord id of arg-1:
  147. remove discord id of arg-1 from {List_Of_Staffs::*}
  148. reply with "Le joueur %discord name of arg-1% vient d'être retirer de la listes des staffs."
  149. delete event-message with "{@NameBot}"
  150. stop
  151.  
  152. reply with "Le joueur %discord name of arg-1% n'est pas dans la listes des staffs."
  153. discord command $liststaff:
  154. executable in: guild
  155. trigger:
  156. loop {List_Of_Staffs::*}:
  157. set {_lu} to user with id loop-value
  158. add "%discord id of {_lu}% > %discord name of {_lu}%" to {_List_Of_Staffs::*}
  159. make embed:
  160. set the colour of the embed to Cyan
  161. add field named "List :" with value "%{_List_Of_Staffs::*}%" to embed
  162. set title of the embed to "List staff !"
  163. reply with last created embed
  164. delete event-message with "{@NameBot}"
  165.  
  166. discord command $listlink:
  167. executable in: guild
  168. trigger:
  169. loop {discord.DISCORD::*}:
  170. set {_lu} to user with id loop-value
  171. add "%discord name of {_lu}% ( %discord id of {_lu}% ) > %{discord.MC::%loop-value%}%" to {_List_Of_Links::*}
  172. make embed:
  173. set the colour of the embed to Cyan
  174. add field named "List :" with value "%{_List_Of_Links::*}%" to embed
  175. set title of the embed to "List link !"
  176. reply with last created embed
  177. delete event-message with "{@NameBot}"
  178.  
  179. on join:
  180. if {discord.DISCORD::%player%} is set:
  181. loop {List_Of_Staffs::*}:
  182. if loop-value is {discord.DISCORD::%player%}:
  183. add player to {NonValidé::*}
  184. send "%{NonValidé::*}%"
  185. set {code.%player%} to random 6 char string from charset `a-zA-Z0-9`
  186. send "Voici votre code : %{code.%player%}%" to user with id {discord.DISCORD::%player%} with "{@NameBot}"
  187. while {NonValidé::*} contains player:
  188. if {Location.%player%} isn't location of player:
  189. teleport player at {Location.%player%}
  190. send "&cVeuillez entrer le code reçu sur votre discord. /Code <code>"
  191. wait 5 ticks
  192. on chat:
  193. loop {NonValidé::*}:
  194. if loop-value is player:
  195. cancel event
  196. send "&cVeuillez entrer le code reçu sur votre discord. /Code <code>"
  197. set {Location.%player%} to location of player
  198. on command:
  199. loop {NonValidé::*}:
  200. if loop-value is player:
  201. if command isn't "code" or "/code" or "login" or "/login":
  202. cancel event
  203. send "&cVeuillez entrer le code reçu sur votre discord. /Code <code>"
  204. stop
  205.  
  206. command /code [<text>]:
  207. trigger:
  208. loop {NonValidé::*}:
  209. if loop-value is player:
  210. set {_true} to true
  211. if {_true} is true:
  212. if arg 1 is {code.%player%}:
  213. send "Code validé !"
  214. remove all player from {NonValidé::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement