Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nandhu-44/rainbowroles
A library to allow rainbow roles in djs in the legal way!
https://github.com/nandhu-44/rainbowroles
bot djs rainbow-role
Last synced: about 7 hours ago
JSON representation
A library to allow rainbow roles in djs in the legal way!
- Host: GitHub
- URL: https://github.com/nandhu-44/rainbowroles
- Owner: nandhu-44
- Created: 2022-02-02T16:24:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T04:55:30.000Z (over 2 years ago)
- Last Synced: 2024-09-24T11:30:57.707Z (about 11 hours ago)
- Topics: bot, djs, rainbow-role
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Rainbow Roles
>Note: This package does not abuse Discord Api in any manner!### Example Bot
```js
const { Client } = require("discord.js")
const client = new Client({
intents: 32767,//All the intents, you can use yours too
})const { RainbowRole } = require("djs-rainbow")
//This feature can be used in any events like messageCreate but i am using in ready event.
client.on("ready", async() => {
const Rainbow = new RainbowRole({
client:client,//Or your client object
guildId:"123456789012345",//Server Id
roleId:"123456789012345",//Role Id
interval:90000 // this is the time
})
Rainbow.start() //Initialize this featureconsole.log("Bot is online!")
})
client.login("Discord bot token")
```
#### __Options__
```js
{
client:client, //Required! , default none
guildId:"guildid",//Required! , default none
roleId:"roleId", //Required! , default none
interval:90000 //Not Required! , default 90 seconds
}
```If you need any help then feel free to join the [Support Server](https://discord.gg/zyRX8nNt7b)