Advertisement
BDFD_Berk

Leaderboard using API | Bot Designer For Discord

Jul 14th, 2021 (edited)
7,019
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 1 0
  1. $nomention
  2. $c[ENABLE BDSCRIPT 2, DON'T FORGET!]
  3. $color[fc8905]
  4. $title[🏅 Leaderboard 🏅]
  5. $footer[Requested by $username[$authorID]#$discriminator[$authorID]]
  6. $addTimestamp
  7.  
  8. $c[You can modify safely anything above this text]
  9. $c[Please if you're having problems with the command it must be because the API has some kind of error, you can check the API-Status here: https://dsc.gg/codes ]
  10. $c[The variable value of "leadertype" needs to be the name of a valid variable type, such as user, globalUser and server, common value is "user"]
  11. $c[The variable value of "leadervar" needs to be the name of the variable that you want to show in the leaderboard, for example "money" or "level"]
  12. $c[The variable value of "leaderbackground" needs to be a image URL for the leaderboard background, you can keep it empty to use the default one!]
  13. $c[Don't edit anything below if you don't know what that do]
  14.  
  15. $image[https://api.berk404.ga/leaderboard?text1=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;1]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;1]; ;+;-1];1]&text2=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;2]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;2]; ;+;-1];1]&text3=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;3]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;3]; ;+;-1];1]&text4=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;4]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;4]; ;+;-1];1]&text5=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;5]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;5]; ;+;-1];1]&text6=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;6]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;6]; ;+;-1];1]&text7=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;7]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;7]; ;+;-1];1]&text8=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;8]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;8]; ;+;-1];1]&text9=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;9]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;9]; ;+;-1];1]&text10=$replaceText[$replaceText[%$checkCondition[$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;10]; ;+;-1]==]%;%true%;undefined!;1];%false%;$replaceText[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;10]; ;+;-1];1]&background=$getServerVar[leaderbackground]]
  16.  
  17. $onlyIf[$getLeaderboardValue[$getVar[leadertype];$getVar[leadervar];asc;1]!=;No one in the server has a value setted (check the leadertype and leadervar variables if you think this is a bug)]
  18.  
  19. $onlyIf[$checkContains[$getVar[leadertype];user;globalUser;server]==true;The variable leadertype needs a valid value type, variable types are: user, globalUser and server, set the variable value of "leadertype" with any of those.]
  20.  
  21. $varExistError[leadertype;Add the vairable "leadertype", value must be a variable type, such as "user"]
  22. $varExistError[leadervar;Add the variable "leadervar", value must be a variable name, such as "money"]
  23. $varExistError[leaderbackground;Add the variable "leaderbackground", value must be a background URL, or you can just keep it empty to use the default one!]
  24. $suppressErrors[Hey! it seems that either you didn't enabled BDscript 2 or the api is down, to know if the api is down, join here: https://dsc.gg/codes and check the #api-status channel!]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement