1.1.1 • Published 3 years ago

discord-activity-role-giver v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

What is this ?

Give specific role to a member when he is streaming or he has is camera enable

Installation

npm i discord-activity-role-giver

Usage

const Discord = require('discord.js');
const { AcitivityRole } = require('discord-activity-role-giver')
const client = new Discord.Client();
client.on('ready', () => {
    const roleGiver = new AcitivityRole(client, {
        stream : {
            enable : true,
            roleId: '807314663439859772'
        },
        cam: {
            enable: true,
            roleId: "804762548581695559"
        }
    })
    console.log("ready")
})
client.login('token')

Options

This package require 2 options, both are required for the package to work :

  • Discord.Client
  • Options - Object :
        stream : {
            enable :  (true or false),
            roleId: 'roleId'
        },
        cam: {
            enable: (true or false),
            roleId: "roleId"
        }

Support

If you need help you can contact me on discord (TAKEFY#9831)