Command: ban#
Summary#
| Command | Default Level | Global Only? |
|---|---|---|
| ban | 100 | no |
Description#
- Kickbans a client from a channel with the given reason as the kick message
Usage#
- Channel parameter is optional. If not given, the bot will default to the originating channel, the channel the user has the most access in, or lastly, the default Armour channel.
- Multiple clients or banmasks can be specified in one command by comma delimiting them
- The
durationis optional and specified as a number and units (s,h,m,d). Examples:10mis 10 minutes1dis 1 day3his 1 hour
- The kick
reasonis optional and if not given, configuration file setting default will be used
Examples#
Kickban client MrBob using default reason:
@Empus | y ban MrBob
-- | Mode #newchan [+b *!~*@142-250-188-238.isp.com] by yolk
<-- | yolk has kicked MrBob (abuse)
Kickban client MrBob for 10 minutes using reason Not welcome:
@Empus | y ban MrBob 10m Not welcome
-- | Mode #newchan [+b *!~*@142-250-188-238.isp.com] by yolk
<-- | yolk has kicked MrBob (Not welcome)
Kickban client MrBob and MsJane using reason Stop spamming:
@Empus | y ban MrBob,MsJane Stop spamming
-- | Mode #newchan [+bb *!~*@142-250-188-238.isp.com *!*@142-250-72-174.cablehost.com] by yolk
<-- | yolk has kicked MrBob (Stop spamming)
<-- | yolk has kicked MsJane (Stop spamming)
Shortcuts#
- If enabled,
bandkbcan also be used as a shortcut to thebancommand - Configuration file setting can be used to determine whether bot sets channel kicks and bans, or sends them through X (which can be faster)
Related Commands#
| Command | Description |
|---|---|
| add | Add a channel blacklist or whitelist entry |
| black | Shortcut to add a blacklist entry for a user |
| cmds | List commands available to user |
| exempt | Tempoarily exempt a client from channel join scans |
| help | View the help for a given command |
| invite | Invite clients to a channel |
| kick | Kick clients from a channel |
| unban | Remove channel bans |