Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Event matchers with a C
prefix are handle only channel events.
Event matchers with a P
prefix are handle only private message events.
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).
Documentation
matchPrefixedCommandC :: EventMatcher e s Source
matchPrefixedCommandP :: EventMatcher e s Source
matchPrefixedCommand :: EventMatcher e s Source
matchRefCommandC :: EventMatcher e s Source
matchRefCommandP :: EventMatcher e s Source
matchRefCommand :: EventMatcher e s Source
matchRefCommandFromSetC :: EventMatcher e s Source
matchRefCommandFromSetP :: EventMatcher e s Source
matchRefCommandFromSet :: EventMatcher e s Source
matchRefCommandFromNamesC :: [String] -> EventMatcher e s Source
matchRefCommandFromNamesP :: [String] -> EventMatcher e s Source
matchRefCommandFromNames :: [String] -> EventMatcher e s Source
matchPlainPrivateCommand :: EventMatcher e s Source
matchNoticeC :: EventMatcher e s Source
matchNoticeP :: EventMatcher e s Source
matchNotice :: EventMatcher e s Source
defaultMatch :: EventMatcher e s Source