irc-fun-bot-0.5.0.0: Library for writing fun IRC bots.

Safe HaskellNone
LanguageHaskell2010

Network.IRC.Fun.Bot.EventMatch

Contents

Description

You can control both the detection and the handling of events coming from the IRC server. This module provides tools for defining event detection rules. For example, should your bot take commands through messages in IRC channels, or in private messages, or both, or perhaps none?

In addition to the event matchers given here, you can easily write your own custom matchers.

The defaultMatch matcher matches some essential events, such as pings, and you should probably use it in your matcher list (e.g. as the last item).

Synopsis

Modifiers

Matchers

matchRefCommand :: EventMatchSpace -> (String -> String) -> EventMatcher e s Source

matchRefCommandFromNames :: EventMatchSpace -> (String -> String) -> Bool -> [String] -> EventMatcher e s Source

matchPlainPrivateCommand :: EventMatcher e s Source

matchNotice :: EventMatchSpace -> EventMatcher e s Source

matchRef :: EventMatchSpace -> EventMatcher e s Source

defaultMatch :: EventMatcher e s Source