GithubHelp home page GithubHelp logo

rainbowroles's Introduction

Rainbow Roles

Note: This package does not abuse Discord Api in any manner!

Example Bot

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 feature

console.log("Bot is online!")

})

client.login("Discord bot token")


Options

{
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

rainbowroles's People

Contributors

nandhu-44 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.