IzanaYT

Bienvenidas con Despedidas avanzado

Jun 12th, 2023 (edited)
1,716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. Discord: Izana#7096
  2. Discord Soporte: https://discord.gg/dru9uRYKqq
  3. Youtube: https://youtu.be/cwynBxJY_T4
  4.  
  5.  
  6. Api: https://popcat.xyz/api
  7. Posdata: Pueden apoyar al creador de la api donandole.
  8.  
  9.  
  10.  
  11.  
  12. Variables Necesarias:
  13.  
  14. Nombre: bienvenidas
  15. Valor:
  16.  
  17. Nombre: despedidas
  18. Valor:
  19.  
  20. Nombre: img
  21. Valor:
  22.  
  23.  
  24.  
  25.  
  26. 1.- Set para configurar los canales de despedidas y bienvenidas
  27.  
  28. Prefix: !set(o cualquiera)
  29.  
  30. Codigo:
  31.  
  32. $nomention
  33. $nomention
  34. $var[E;$random[0;999999]]
  35. $varExistError[bienvenidas;:x: Por favor crea una variable con el nombre: `bienvenidas` y como valor `nada`]
  36. $varExistError[despedidas;:x: Por favor crea una variable con el nombre `despedidas` y como valor `nada`]
  37. $varExistError[img;:x: Por favor crea una variable con el nombre `img` y como valor `nada`]
  38.  
  39.  
  40.  
  41.  
  42. $onlyBotPerms[manageserver;:x: Necesito permisos de administrar el servidor]
  43. $onlyBotPerms[sendmessages;:x: Necesito el permisos de enviar mensajes]
  44. $onlyBotPerms[embedlinks;:x: Necesito el permiso de enviar links error]
  45. $onlyPerms[manageserver;:x: Necesitas permisos de administrar el servidor]
  46.  
  47.  
  48. $c[Izana#7096]
  49.  
  50. $if[$checkContains[$toLowercase[$message[1]];Bienvenidas;bienvenidas;BIENVENIDA;BIENVENIDAS;bienvenida;welcome]==true]
  51. $if[$channelExists[$mentionedChannels[1]]==true]
  52.  
  53. $description[Las bienvenidas se establecieron en <#$mentionedChannels[1]> ]
  54. $setServerVar[bienvenidas;$mentionedChannels[1]]
  55. $color[$var[E]]
  56. $else
  57. $description[Por favor menciona un canal valido]
  58. $endif
  59. $endif
  60.  
  61.  
  62.  
  63.  
  64.  
  65. $if[$checkContains[$toLowercase[$message[1]];onleave;despedida;DESPEDIDAS;DESPEDIDAD]==true]
  66. $if[$channelExists[$mentionedChannels[1]]==true]
  67.  
  68. $description[Las despedidas se establecieron en <#$mentionedChannels[1]> ]
  69. $setServerVar[despedidas;$mentionedChannels[1]]
  70. $color[$var[E]]
  71. $else
  72. $description[Por favor menciona un canal valido]
  73. $endif
  74. $endif
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. 2.- Bienvenidas interaccion del canal
  85.  
  86. Prefix: $onJoined[$getServerVar[bienvenidas]]
  87.  
  88. Codigo:
  89.  
  90. $nomention
  91. $title[Bienvenidas]
  92. $description[<@$authorID> entro a $serverName[$guildID]]
  93. $image[https://api.popcat.xyz/welcomecard?background=$replaceText[$replaceText[$checkCondition[$getServerVar[img]==];true;https://cdn.discordapp.com/attachments/1077969202058645552/1117980148424265828/Picsart_23-05-14_06-59-26-524.png;1];false;$getServerVar[img];1]&text1=$username&text2=BIENVENIDO+AL+SERVIDOR&text3=AHORA+SOMOS+$membersCount+MIEMBROS&avatar=$authorAvatar]
  94. $color[00FF22]
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103. 3.- Despedidas interaccion del canal
  104.  
  105. Prefix: $onLeave[$getServerVar[despedidas]]
  106.  
  107. Codigo:
  108.  
  109. $nomention
  110. $title[Despedidas]
  111. $description[<@$authorID> abandono $serverName[$guildID]]
  112. $image[https://api.popcat.xyz/welcomecard?background=$replaceText[$replaceText[$checkCondition[$getServerVar[img]==];true;https://cdn.discordapp.com/attachments/1077969202058645552/1117980148424265828/Picsart_23-05-14_06-59-26-524.png;1];false;$getServerVar[img];1]&text1=$username&text2=HA+SALIDO+DEL+SERVIDOR&text3=AHORA+SOMOS+$membersCount+MIEMBROS&avatar=$authorAvatar]
  113. $color[$random[0;999999]]
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122. 4.- Set Imagen de fondo de las despedidas y bienvenidas
  123.  
  124. Prefix: !img(o el que quieran)
  125.  
  126. Codigo:
  127.  
  128. $nomention
  129. $c[Holas]
  130. $if[$message==$removeLinks[$message]]
  131. $description[Por favor ingresa un link valido]
  132. $color[$random[0;999999]]
  133. $else
  134. $description[Link de imagen registrado para bienvenidas y despedidas]
  135. $color[$random[0;999999]]
  136. $setServerVar[img;$message]
  137. $endif
Advertisement
Add Comment
Please, Sign In to add comment