BDFD_Berk

Level System with role rewards and a lot of things! | Bot Designer For Discord

Jun 19th, 2021 (edited)
12,891
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.87 KB | None | 0 0
  1. Watch this if you haven't: https://youtu.be/eLcOvoRCZ8c
  2. IF YOU NEED HELP, YOU CAN ASK HERE:
  3. https://dsc.gg/codes
  4.  
  5. HELLO, THIS IS THE WHOLE LEVELING SYSTEM CODE, I RECOMMEND YOU TO USE THE SHARECODE ( GA9Gbji1gPH3nE7qdCmfb9pCd ) INSTEAD OF HAVING TO COPY ALL THIS, BUT IF YOU HAVE THAT MUCH TIME TO COPY ALL THE COMMANDS, GO AHEAD.
  6.  
  7. BEFORE STARTING, KNOW THAT ALL THE COMMANDS IN THIS PASTEBIN ARE SEPARATED BY THE SEPARATOR OF ===== BELOW, SO, EACH OF THOSE SYMBOLS SEPARATE A DIFFERENT COMMAND.
  8.  
  9. ====================================================================================
  10. ====================================================================================
  11. ====================================================================================
  12. ====================================================================================
  13. ====================================================================================
  14.  
  15. VARIABLES THAT YOU NEED TO ADD, WITH THEIR VALUES:
  16.  
  17. custombg
  18. value=https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQz8TueHUgVNroUgCgN5d35oo5Kg_LuFN6CHToIXL4pPSK-AL8FXgjEyBUcJlg97sMcrqg&usqp=CAU
  19.  
  20. talk
  21. value=0
  22.  
  23. level
  24. value=0
  25.  
  26. req
  27. value=250
  28.  
  29. levelmsg
  30. value=**{username}** You leveled up! your new level is {level}
  31.  
  32. lvlchannel
  33. value=
  34.  
  35. lvlblacklisted
  36. value=
  37.  
  38. role5
  39. value=
  40.  
  41. role10
  42. value=
  43.  
  44. role15
  45. value=
  46.  
  47. role20
  48. value=
  49.  
  50. role25
  51. value=
  52.  
  53. role30
  54. value=
  55.  
  56. ====================================================================================
  57. ====================================================================================
  58. ====================================================================================
  59. ====================================================================================
  60.  
  61. GAIN EXP CODE, YOU NEED TO ADD THIS CODE IN A COMMAND FOR EACH LETTER, (from a-z to A-Z or the whole alphabet of your country, one command per letter as trigger) ALSO MAKE SURE TO ENABLE UNSTABLE MODE ON ALL THE COMMANDS:
  62.  
  63. $nomention
  64. $c[ Please, don't edit the code if you don't know how it works, you can broke it! use the variables instead and ENABLE UNSTABLE MODE!]
  65. $cooldown[2s;]
  66. $if[$getUserVar[talk]>$getUserVar[req]]
  67. $setUserVar[level;$sum[$getUserVar[level];1]]
  68. $setUserVar[req;$sum[$getUserVar[req];$random[0;60]]]
  69. $setUserVar[talk;0]
  70. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  71. $channelSendMessage[$replaceText[$replaceText[%$checkCondition[$getServerVar[lvlchannel]==]%;%true%;$channelID;1];%false%;$getServerVar[lvlchannel];1];$replaceText[$replaceText[$replaceText[$replaceText[$getServerVar[levelmsg];{username};$username;-1];{level};$sum[$getUserVar[level];1];-1];{mention};<@$authorID>;-1];{user.id};$authorID;-1]]
  72. $else
  73. $setUserVar[talk;$sum[$getUserVar[talk];$random[1;35]]]
  74. $endif
  75. $onlyIf[$checkContains[$getServerVar[lvlblacklisted];$channelID]==false;]
  76. $suppressErrors
  77.  
  78. $c[LEVEL UP ROLES BELOW - MAKE SURE TO GIVE THE BOT "MANAGEROLES" PERMISSIONS IF YOU WILL SET LEVEL REWARDS!]
  79.  
  80. $if[$roleExists[$getServerVar[role5]]$checkUserPerms[$botID;manageroles]==truetrue]
  81. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role5]]==5false]
  82. **$username** Congratulations, you're level 5 now, and got rewarded with the role **$roleName[$getServerVar[role5]]**!
  83. $giveRole[$authorID;$getServerVar[role5]]
  84. $else
  85. $endif
  86. $else
  87. $endif
  88.  
  89. $if[$roleExists[$getServerVar[role10]]$checkUserPerms[$botID;manageroles]==truetrue]
  90. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role10]]==10false]
  91. **$username** Congratulations, you're level 10 now, and got rewarded with the role **$roleName[$getServerVar[role10]]**!
  92. $giveRole[$authorID;$getServerVar[role10]]
  93. $else
  94. $endif
  95. $else
  96. $endif
  97.  
  98. $if[$roleExists[$getServerVar[role15]]$checkUserPerms[$botID;manageroles]==truetrue]
  99. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role15]]==15false]
  100. **$username** Congratulations, you're level 15 now, and got rewarded with the role **$roleName[$getServerVar[role15]]**!
  101. $giveRole[$authorID;$getServerVar[role15]]
  102. $onlyIf[$hasRole[$authorID;$getServerVar[role15]]==false;]
  103. $else
  104. $endif
  105. $else
  106. $endif
  107.  
  108. $if[$roleExists[$getServerVar[role20]]$checkUserPerms[$botID;manageroles]==truetrue]
  109. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role20]]==20false]
  110. **$username** Congratulations, you're level 20 now, and got rewarded with the role **$roleName[$getServerVar[role20]]**!
  111. $giveRole[$authorID;$getServerVar[role20]]
  112. $onlyIf[$hasRole[$authorID;$getServerVar[role20]]==false;]
  113. $else
  114. $endif
  115. $else
  116. $endif
  117.  
  118. $if[$roleExists[$getServerVar[role25]]$checkUserPerms[$botID;manageroles]==truetrue]
  119. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role25]]==25false]
  120. **$username** Congratulations, you're level 25 now, and got rewarded with the role **$roleName[$getServerVar[role25]]**!
  121. $giveRole[$authorID;$getServerVar[role25]]
  122. $onlyIf[$hasRole[$authorID;$getServerVar[role25]]==false;]
  123. $else
  124. $endif
  125. $else
  126. $endif
  127.  
  128. $if[$roleExists[$getServerVar[role30]]$checkUserPerms[$botID;manageroles]==truetrue]
  129. $if[$getUserVar[level]$hasRole[$authorID;$getServerVar[role30]]==30false]
  130. **$username** Congratulations, you're level 30 now, and got rewarded with the role **$roleName[$getServerVar[role30]]**!
  131. $giveRole[$authorID;$getServerVar[role30]]
  132. $onlyIf[$hasRole[$authorID;$getServerVar[role30]]==false;]
  133. $else
  134. $endif
  135. $else
  136. $endif
  137.  
  138. $suppressErrors
  139.  
  140.  
  141. ====================================================================================
  142. ====================================================================================
  143. ====================================================================================
  144. ====================================================================================
  145. ====================================================================================
  146.  
  147.  
  148. RANK CODE (REQUIRE UNSTABLE MODE ENABLED):
  149.  
  150. $nomention
  151.  
  152. $color[$random[111111;999999]]
  153. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  154.  
  155. $image[https://vacefron.nl/api/rankcard?username=$replaceText[$username[$mentioned[1;yes]]; ;+;-1]&avatar=$replaceText[$userAvatar[$mentioned[1;yes]]?size=4096;webp;jpg;-1]&level=$getUserVar[level;$mentioned[1;yes]]&rank=&currentxp=$replaceText[$sub[$getUserVar[talk;$mentioned[1;yes]];35];-;;1]&nextlevelxp=$replaceText[$getUserVar[req;$mentioned[1;yes]];-;;1]&previouslevelxp=0&custombg=$getUserVar[custombg;$mentioned[1;yes]]&xpcolor=F8F8F9&isboosting=false&circleavatar=true]
  156.  
  157. $footer[$replaceText[$replaceText[%$checkCondition[$username[$mentioned[1;yes]]==$username[$authorID]]%;%true%;You;1];%false%;$username[$mentioned[1;yes]];1] need $sum[$replaceText[$sub[$getUserVar[talk;$mentioned[1;yes]];$getUserVar[req;$mentioned[1;yes]]];-;;1];35] more of EXP to level up]
  158.  
  159. $onlyIf[$isBot[$mentioned[1;yes]]==false;**$username** Well.. you can't see the level of a bot]
  160.  
  161. ====================================================================================
  162. ====================================================================================
  163. ====================================================================================
  164. ====================================================================================
  165. ====================================================================================
  166.  
  167. BLACKLIST CODE (REQUIRE UNSTABLE MODE ENABLED):
  168.  
  169. $nomention
  170. $color[$random[111111;999999]]
  171. $c[ ENABLE UNSTABLE MODE! ]
  172. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  173.  
  174. $author[Blacklisted!]
  175. $description[**$username** Successfully blacklisted the channel <#$mentionedChannels[<]>, now users won't be able to gain EXP there!
  176. You can unblacklist the channel back by doing +unblacklist #channel]
  177. $footer[Executed by $username#$discriminator[$authorID]]
  178. $addTimestamp
  179. $setServerVar[lvlblacklisted;$getServerVar[lvlblacklisted], $mentionedChannels[<] ]
  180. $onlyAdmin[**$username** only administrators can set this!]
  181. $onlyIf[$channelExists[$mentionedChannels[<]]==true;**$username** Please, mention a valid channel to blacklist]
  182.  
  183. ====================================================================================
  184. ====================================================================================
  185. ====================================================================================
  186. ====================================================================================
  187. ====================================================================================
  188.  
  189. UNBLACKLIST CODE (REQUIRE UNSTABLE MODE ENABLED):
  190.  
  191. $nomention
  192. $color[$random[111111;999999]]
  193. $c[ ENABLE UNSTABLE MODE! ]
  194. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  195.  
  196. $author[Unblacklisted!]
  197. $description[Successfully unblacklisted the channel <#$mentionedChannels[<]>, now users would've able to gain EXP there again]
  198. $footer[Executed by $username#$discriminator[$authorID]]
  199. $addTimestamp
  200. $setServerVar[lvlblacklisted;$replaceText[$getServerVar[lvlblacklisted];$mentionedChannels[<]; ;-1]]
  201. $onlyAdmin[**$username** only administrators can set this!]
  202. $onlyIf[$channelExists[$mentionedChannels[<]]==true;**$username** Please, mention a valid channel to blacklist]
  203.  
  204. ====================================================================================
  205. ====================================================================================
  206. ====================================================================================
  207. ====================================================================================
  208. ====================================================================================
  209.  
  210. SETMSG CODE (REQUIRE UNSTABLE MODE ENABLED):
  211.  
  212. $nomention
  213. $color[$random[111111;999999]]
  214. $c[ ENABLE UNSTABLE MODE! ]
  215. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  216.  
  217. $author[Level up message setted]
  218. $description[Successfully setted the level up message to:
  219. ```$message```
  220. When someone level up, i'll send that message!
  221. $replaceText[$replaceText[%$checkContains[$message;{username};{user.id};{level}]%;%true%;;-1];%false%;**WARNING**: You didn't setted any FUNCTION, it is recommended to set {functions} in the leveling message, such as: **+setmsg {username} You leveled up to level {level}, congratulations!**;1]]
  222. $setServerVar[levelmsg;$message]
  223. $footer[Executed by $username#$discriminator[$authorID]]
  224. $addTimestamp
  225. $onlyIf[$message!=;**$username** Wrong! please type a valid message, you can also use special functions such as {username}, {level} and {user.id}, for example: `**{username}** you leveled up to level {level}`!]
  226. $onlyAdmin[**$username** only administrators can set this!]
  227.  
  228. ====================================================================================
  229. ====================================================================================
  230. ====================================================================================
  231. ====================================================================================
  232. ====================================================================================
  233.  
  234. SET LVLCHANNEL CODE (REQUIRE UNSTABLE MODE ENABLED):
  235.  
  236. $nomention
  237. $color[$random[111111;999999]]
  238. $c[ ENABLE UNSTABLE MODE! ]
  239. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  240.  
  241. $author[Setted leveling channel!]
  242. $if[$message[1]==off]
  243. $description[**$username** Now i'll send the level up messages in the channel in where the user leveled up!]
  244. $else
  245. $description[**$username** Now i'll send the level up messages in the <#$mentionedChannels[<]> channel! to disable this, just do t!lvlchannel off]
  246. $endif
  247. $footer[Executed by $username#$discriminator[$authorID]]
  248. $addTimestamp
  249. $if[$message[1]==off]
  250. $setServerVar[lvlchannel; ]
  251. $else
  252. $setServerVar[lvlchannel;$mentionedChannels[>]]
  253. $endif
  254. $onlyAdmin[**$username** only administrators can set this!]
  255. $onlyIf[$message!=;**$username** Please, mention a valid channel to set as level up channel, or do **t!lvlchannel off** to set it as default]
  256.  
  257. ====================================================================================
  258. ====================================================================================
  259. ====================================================================================
  260. ====================================================================================
  261. ====================================================================================
  262.  
  263. SET RANKCARD BACKGROUND CODE (REQUIRE UNSTABLE MODE ENABLED):
  264.  
  265. $nomention
  266. $onlyIf[$checkContains[$message;https://;http://;img;.com;.net;.es;.;:;//;/;.jpg;.png;.gif;.webp;q=;images?;image?;img?;encrypted]==true;**$username** Please, make sure you wrote a valid background image URL]
  267. $color[$random[111111;999999]]
  268. $c[ ENABLE UNSTABLE MODE! ]
  269. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  270. $author[Background setted]
  271. $description[Successfully setted the custom background for your rank card!]
  272. $setUserVar[custombg;$message[1]]
  273. $image[$message]
  274. $footer[Executed by $username#$discriminator[$authorID]]
  275. $addTimestamp
  276.  
  277. ====================================================================================
  278. ====================================================================================
  279. ====================================================================================
  280. ====================================================================================
  281. ====================================================================================
  282.  
  283. SET ROLE REWARD CODE (REQUIRE UNSTABLE MODE EANBLED):
  284.  
  285. $nomention
  286. $color[$random[111111;999999]]
  287. $footer[Executed by $username#$discriminator[$authorID]]
  288. $addTimestamp
  289. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  290. $c[ ENABLE UNSTABLE MODE! ]
  291.  
  292. $if[$message[2]!=off]
  293. $setServerVar[role$message[1];$findRole[$message[2]]]
  294. $description[Successfully setted the role <@&$findRole[$message[2]]> as reward for level **$message[1]**!
  295. When users level up to level **$message[1]** i'll give them that role
  296. **If you want to remove the reward for certain level, just do +setreward 5 off** (example)]
  297. $onlyIf[$roleExists[$findRole[$message[2]]]==true;**$username** please, type a valid role ID, mention or name, example: +setreward 5 @role]
  298. $onlyIf[$message[2]!=;**$username** please, type a valid role ID, mention or name, example: +setreward 5 @role]
  299. $else
  300. $setServerVar[role$message[1];]
  301. $description[Successfully removed the role reward for the level **$message[1]**!
  302. When users level up to level **$message[1]** i won't give them any role]
  303. $endif
  304. $onlyIf[$message[2]!=;**$username** please, type a valid role ID, mention or name, example: +setreward 5 @role]
  305. $onlyIf[$checkContains[$message[1];5;10;15;20;25;30]==true;**$username** please, type a valid level from: **5, 10, 15, 20, 25** and **30**, example: +setreward 5 @role]
  306. $onlyPerms[manageroles;**$username** You need manage roles permissions to do this!]
  307. $onlyBotPerms[manageroles;**$username** Sorry, but i need manage roles permissions to do this, make sure to give me that permission!]
  308.  
  309. ====================================================================================
  310. ====================================================================================
  311. ====================================================================================
  312. ====================================================================================
  313. ====================================================================================
  314.  
  315. CHECK REWARDS CODE (REQUIRE UNSTABLE MODE ENABLED):
  316.  
  317. $nomention
  318. $color[$random[111111;999999]]
  319. $author[Role rewards]
  320. $c[ Code by Berk#3506 | YT: Bot Designer For Discord: Guide | DM if errors ]
  321. $c[ ENABLE UNSTABLE MODE! ]
  322. $description[You get awesome roles by leveling up, below you can see a list of them!
  323.  
  324. __**Level 5**__
  325. Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role5]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role5]>;1]
  326. Progress: Level $getUserVar[level]/5 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=5]%;%true%;(Reached);1];%false%;(Not reached yet);1]
  327.  
  328. __**Level 10**__
  329. Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role10]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role10]>;1]
  330. Progress: Level $getUserVar[level]/10 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=10]%;%true%;(Reached);1];%false%;(Not reached yet);1]
  331.  
  332. __**Level 15**__
  333. Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role15]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role15]>;1]
  334. Progress: Level $getUserVar[level]/15 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=15]%;%true%;(Reached);1];%false%;(Not reached yet);1]
  335.  
  336. __**Level 20**__
  337. Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role20]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role20]>;1]
  338. Progress: Level $getUserVar[level]/20 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=20]%;%true%;(Reached);1];%false%;(Not reached yet);1]
  339.  
  340. __**Level 25**__
  341. Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role25]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role25]>;1]
  342. Progress: Level $getUserVar[level]/25 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=25]%;%true%;(Reached);1];%false%;(Not reached yet);1]
  343.  
  344. __**Level 30**__
  345. Role: $replaceText[$replaceText[%$checkCondition[$getServerVar[role30]==]%;%true%;Not setted;1];%false%;<@&$getServerVar[role30]>;1]
  346. Progress: Level $getUserVar[level]/30 $replaceText[$replaceText[%$checkCondition[$getUserVar[level]>=30]%;%true%;(Reached);1];%false%;(Not reached yet);1]
  347. ]
  348. $footer[Level up to get those awesome roles!]
  349.  
  350. ====================================================================================
  351. ====================================================================================
  352. ====================================================================================
  353. ====================================================================================
  354. ====================================================================================
  355.  
  356. SET LEVEL CODE (REQUIRE UNSTABLE MODE ENABLED):
  357.  
  358. $nomention
  359. $author[Level setted]
  360. $color[$random[111111;999999]]
  361. $description[Successfully setted the level of <@$mentioned[<]>, now that user is level $noMentionMessage]
  362. $setUserVar[level;$noMentionMessage;$mentioned[<]]
  363. $onlyIf[$isNumber[$noMentionMessage]==true;Please, type a valid level!]
  364. $onlyIf[$mentioned[1]!=;Please, mention a user!]
  365. $addTimestamp
  366. $footer[Executed by $username]
  367. $onlyAdmin[Only admins can set users level!]
  368.  
  369. ====================================================================================
  370. ====================================================================================
  371. ====================================================================================
  372. ====================================================================================
  373. ====================================================================================
  374.  
  375. IF YOU NEED HELP, YOU CAN ASK HERE:
  376. https://dsc.gg/codes
  377.  
  378. MAKE SURE YOU COPIED ALL WELL!
Add Comment
Please, Sign In to add comment