Give specific role to a member when he is streaming or he has is camera enable
npm i discord-activity-role-giver
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')
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"
}
If you need help you can contact me on discord (TAKEFY#9831)