herald

Owner-follow bot with a configurable keyword responder.

Herald tracks the owner's IRC presence and mirrors their channel movements. It can also respond to keywords in channel messages with random replies.

Dependencies

No external libraries required.

Plugins

FileRole
commands.pyFollow logic and admin commands
respond.pyKeyword-based auto-responder

Commands (owner only)

CommandDescription
!pausePause keyword responses
!resumeResume keyword responses
!follow onStart tracking owner's channels (checks every 30s via WHOIS)
!follow offStop tracking
!unfollowImmediately leave all follow-joined channels
!join #channelJoin a channel manually
!part [#channel]Leave a channel
!chansList channels
!helpShow usage (PM)

Automatic behaviour

- When the owner PARTs a channel, herald leaves too (unless it's a preconfigured channel). - When the owner QUITs, herald leaves all non-preconfigured channels. - With !follow on, herald also joins any channel the owner is in that herald isn't.

Preconfigured channels are the ones listed under channels in the config.

Keyword responder (respond.py)

Configure in [respond]:

[respond]
keywords =
    hello
    hi there
responses =
    Hey!
    What's up?

When any keyword appears (case-insensitive) in a channel message, herald replies with a randomly chosen response.

Config keys

KeyDescription
[respond] keywordsNewline-separated list of trigger words
[respond] responsesNewline-separated list of possible replies