Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Discord: https://discord.gg/dru9uRYKqq
- Youtube: https://www.youtube.com/channel/UCyW5t7v-DmUtfYpk0tKEQrA
- Tag: izana.py Owner de BDS World
- Primer codigo:
- Prefix: !rol-lista
- Codigo:
- $nomention
- $color[$random[0;999999]]
- $author[]
- $allowRoleMentions[]
- $c[tu token aqui abajo]
- $var[token;token aqui]
- $httpGet[https://v9pcf4-8000.csb.app/roles_members/?guild_id=$guildID&token=$var[token]&limit=10&page=1]
- $jsonParse[$httpResult]
- $var[rep;$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[10;a]]];10;]]
- $var[s;0]
- $description[
- $eval[$replaceText[$var[rep];a;$trimSpace[
- %{DOL}%if[%{DOL}%roleExists[%{DOL}%findRole[%{DOL}%json[roles_members%{-SEMICOL-}%%{DOL}%var[s\]%{-SEMICOL-}%role_name\]\]\]==true\] <@&%{DOL}%findRole[%{DOL}%json[roles_members%{-SEMICOL-}%%{DOL}%var[s\]%{-SEMICOL-}%role_name\]\]> - Miembros: %{DOL}%json[roles_members%{-SEMICOL-}%%{DOL}%var[s\]%{-SEMICOL-}%role_count\] %{DOL}%endif
- %{DOL}%var[s%{-SEMICOL-}%%{DOL}%sum[%{DOL}%var[s\]%{-SEMICOL-}%1\]\]
- ];-1]]]
- $addButton[false;pageant_1_$authorID;Anterior;primary;true;]
- $if[$jsonArrayCount[roles_members]!=-1]
- $var[condicion;false]
- $else
- $var[condicion;true]
- $endif
- $footer[Pagina 1/$httpResult[total_pages] - Total roles: $roleCount - Resultados motrados: 10]
- $addButton[false;pagesig_1_$authorID;Siguiente;primary;$var[condicion]]
- Interaciones de los botones:
- Prefix: $onInteraction
- Codigo:
- $nomention
- $c[tu token aqui abajo]
- $var[token;token aqui]
- $textSplit[$getEmbedData[$channelID;$messageID;1;footer];/]
- $var[otro;$splitText[2]]
- $textSplit[$splitText[1]; ]
- $var[numero;$splitText[2]]
- $var[customizable;$customID]
- $if[$or[$checkContains[$var[customizable];pagesig]==true;$checkContains[$var[customizable];pageant]==true]==true]
- $removeButtons
- $color[$random[0;999999]]
- $textSplit[$customID;_]
- $if[$splitText[1]==pagesig]
- $var[contador;$sum[$var[numero];1]]
- $elseif[$splitText[1]==pageant]
- $var[contador;$sub[$var[numero];1]]
- $endif
- $httpGet[https://v9pcf4-8000.csb.app/roles_members/?guild_id=$guildID&token=$var[token]&limit=10&page=$var[contador]]
- $jsonParse[$httpResult]
- $var[rep;$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[10;a]]];10;]]
- $var[s;0]
- $description[
- $eval[$replaceText[$var[rep];a;$trimSpace[
- %{DOL}%if[%{DOL}%roleExists[%{DOL}%findRole[%{DOL}%json[roles_members%{-SEMICOL-}%%{DOL}%var[s\]%{-SEMICOL-}%role_name\]\]\]==true\] <@&%{DOL}%findRole[%{DOL}%json[roles_members%{-SEMICOL-}%%{DOL}%var[s\]%{-SEMICOL-}%role_name\]\]> - Miembros: %{DOL}%json[roles_members%{-SEMICOL-}%%{DOL}%var[s\]%{-SEMICOL-}%role_count\] %{DOL}%endif
- %{DOL}%var[s%{-SEMICOL-}%%{DOL}%sum[%{DOL}%var[s\]%{-SEMICOL-}%1\]\]
- ];-1]]]
- $if[$var[contador]==1]
- $var[retornar;true]
- $else
- $var[retornar;false]
- $endif
- $if[$var[contador]==$httpResult[total_pages]]
- $var[retornar_2;true]
- $else
- $var[retornar_2;false]
- $endif
- $addButton[false;pageant_$authorID_1;Anterior;primary;$var[retornar];]
- $addButton[false;pagesig_$authorID_1;Siguiente;primary;$var[retornar_2];]
- $footer[Pagina $var[contador]/$httpResult[total_pages] - Total roles: $roleCount - Resultados motrados: 10]
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement