eir

eir is a freenode utility bot platform. Originally written to manage voicing in the social channel, #defocus, subsequent utility components, such as the replacement for dircbot, have since been added. eir is open source; the source code can be found at https://github.com/freenode/eir.

Commands

These may be sent in PM to the bot, or in any channel in which the bot is present
by prefixing them with '!'
Note that if commands are sent to the bot in a channel the reply will be sent to the channel.

btinfo [index|nick|#channel]

This will show you information about one ban if
btinfo [index] is used. For example, the following command will show
information about a ban with an index of 1058.

/msg eir btinfo 1058

If btinfo [nick] is used, then it will show all the
active bans set by the nick, and how many bans the nick has set in total. For
example, the following command will show all active bans set by nhandler.

/msg eir btinfo nhandler

If btinfo [#channel] is used, the it will return a list of all the recorded bans
set in a channel (warning, this may be a long list). For example, the following
command will show a list of all of the recorded bans set in #freenode.

/msg eir btinfo #freenode

btcheck [#channel] [nick|fullMask]

This will return a list of active bans on the #channel that match the user
either by nick or full mask (nick will use the bot's internal list). For
example, the following command will show a list of all active bans set in
#freenode that match nhandler.

btpending [#channel|nick]

This command will list all of the bans that are both active and uncommented
for the #channel or set by the specified nick. For example, the following
command will show all active and uncommented bans for #freenode.

/msg eir btpending #freenode

btexpired [#channel]

This command will list all of the bans in #channel that are active and
expired. For example, the following command will show all active and expired
bans in #freenode.

/msg eir btexpired #freenode

btset index [~time]|[reason]

Sets the ban expiry time and/or the reason for the ban by index. For example,
the following command will set a ban with an index of 2634 to expire in 1 week
with a reason of 'Trolling'.

/msg eir btset 2634 ~7d Trolling

Reasons

When you set a ban, the bot will PM you requesting a comment on the ban. Simply
reply to the comment, whatever you send will be recorded. If you have set more
than one ban you will be prompted for each in turn.