Rate.js Is a command that will give you the choice to rate any users within your discord server.
- npm i discord.js
- npm i node.js
Timer.js should be inserted in your Commands-file
- Find more about Commands-file right here
- You'll need to define a prefix ("/" by default).
- Use rate following your prefix.
- Indicate the user you would like to rate by mentioning them.
Global usage:
<your_prefix / rate / @user>
Example (prefix = "/" | user = "@Shedhatch")
:
/rate @Shedhatch (will return a random number between 0
and 10
)
Wanna get rated 10/10 everytime ?
Imagine bypassing the rate system ?
Well, I'll give you an additionnal feature that will help you to do so!
🤫 pssst It's right here
- Under the config comment, define an "admin" by indicating their user Id.
How to find my ID on Discord ?
let admin = "id";
- Now let's return our secret rate !
if(ratus.id === admin) {
return message.channel.send(`I'd give **__${ratus.user.username}__** ${maxrate}/10`);
}
Still having troubles to understand ? Don't worry this part Is fully included in the final code!
- The following code Is not up to date (running under V11)
- You can learn more V12 It by following this link