This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
[actions] moderateBanUser
Thedark1337 edited this page Aug 31, 2016
·
10 revisions
Bans an user from the room. The bot needs to have bouncer permission or higher.
The user's ID.
Reason for ban.
- 1: Spamming or trolling (default)
- 2: Verbal abuse or offensive language
- 3: Playing offensive videos/songs
- 4: Repeatedly playing inappropriate genre(s)
- 5: Negative attitude
Duration of ban.
-
h
orPlugAPI.BAN.HOUR
: Hour -
d
orPlugAPI.BAN.DAY
: Day -
f
orPlugAPI.BAN.PERMA
: Forever (default)
Callback function to be called with data from server.
true
if request queued; otherwise false
// Require PlugAPI
var PlugAPI = require('plugapi');
// Ban user forever for spamming or trolling
bot.moderateBanUser('xxxxxxxxxxxxxxxxxxxxxxxx');
// Ban user for a day for negative attitude
bot.moderateBanUser('xxxxxxxxxxxxxxxxxxxxxxxx', 4, PlugAPI.BAN.DAY);