discord-activity-role-giver
v1.1.1
Published
Giving a role to a member when they are streaming or in cam
Downloads
4
Maintainers
Readme
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)