Skip to content

Giving a role to a member when they are streaming or in cam

Notifications You must be signed in to change notification settings

takefy-dev/discord-activity-role-giver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Giving a role to a member when they are streaming or in cam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published