Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Aoi.js Leveling
- //Before you copy This Please Subscribe my Youtube Channel To Support Me :)
- //BASIC YLeveling Sytems
- [ Variable ]
- //tips : First You Create A New Var With name Like This put in index.js
- > rank
- > exp
- > levelling
- > level_channel
- > level_msg
- [ Commands 1 >> enable leveling]
- //fisrt command to enable leveling in your serever
- module.exports = ({
- name:"enable-levelling",
- aliases:"nlevel",
- category:"Levelling",
- code:`
- $setservervar[levelling;true]
- $setservervar[level_channel;$findchannel[$message[1]]]
- $setservervar[level_msg;$replacetext[$replacetext[$checkcondition[$message[2]==];true;$getservervar[level_msg]];false;$nomentionmessage]]
- $title[1;Sucess To Enable Levelling]
- $color[1;WHITE]
- $description[1;Levelling system successfully set up! If you did not use any place holders, and want to use them, check below ->
- \`\`\`
- > username -> $username
- > usertag -> <@$authorid>
- > level -> 1
- \`\`\`]
- $onlyif[$mentionedchannels[1]!=;Could not find the channel!]
- $onlyperms[manageserver;Not enough permissions! You need manage server permissions to execute this!]`})
- //tips : you can edit like you want
- [ Command 2 >> reset / disable the leveling]
- //to disable the leveling
- module.exports = ({
- name:"dis-levelling",
- aliases:"un-level",
- category:"Levelling",
- code:`
- $setservervar[levelling;false]
- $title[I successfully reset levelling for this server!]
- $color[WHITE]
- `})
- //tips you can edit what ever like you want
- [ Command 3 >> Stats / Ranks / Profile]
- //to see level in user
- module.exports = ({
- name:"rank",
- aliases:"level",
- category:"Levelling",
- description:"Check the rank of a user.",
- usage:"rank <optional user>",
- code:`
- $onlyIf[$message!=;in falid usage try this \`<prefix>rank <mentioned user>\`]
- $author[Rank of $usertag[$mentioned[1]];$authoravatar]
- $description[
- > Ranks And Level
- \`\`\`
- 🏆 | level : $getUserVar[rank;$mentioned[1]]
- 👑 | exp : $getUserVar[exp;$mentioned[1]] / 100
- \`\`\`]
- $color[WHITE]
- $onlyif[$getservervar[levelling]==true;{newEmbed:{title:The levelling system is disabled!}{color:WHITE}}]`})
- //you can change what ever you want
- [ Command 4 >> handler / loop]
- //to execute loop if an user is levelup
- module.exports = ({
- name:"$alwaysExecute",
- code:`$setUserVar[exp;$sum[$getUserVar[exp];$random[4;8]]]
- $setUserVar[rank;$sum[$getUserVar[rank];1]]
- $title[🎁 | You Level Up]
- $color[WHITE]
- $description[You have leveled up to **$math[$getUserVar[rank]+1]**]
- $globalCooldown[140s]
- $deleteIn[10s]
- $onlyif[$getservervar[levelling]==true;]`})
- //you cam change what ever you want
- //SUBSCRIBE FOR MORE :)
Advertisement
Add Comment
Please, Sign In to add comment