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.
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).
- modId :: String -> String
- modPrefix :: String -> Bool -> String -> String
- modPrefixes :: [String] -> Bool -> String -> String
- modPrefixCI :: String -> Bool -> String -> String
- modPrefixesCI :: [String] -> Bool -> String -> String
- modPleasePrefix :: String -> String
- modPleasePrefix' :: String -> String
- matchPrefixedCommand :: EventMatchSpace -> Bool -> EventMatcher e s
- matchPrefixedCommandFromSet :: EventMatchSpace -> Bool -> Maybe (CommandSet e s) -> EventMatcher e s
- matchPrefixedCommandFromNames :: EventMatchSpace -> Bool -> Either Char (CommandSet e s) -> [String] -> EventMatcher e s
- matchRefCommand :: EventMatchSpace -> (String -> String) -> EventMatcher e s
- matchRefCommandFromSet :: EventMatchSpace -> (String -> String) -> EventMatcher e s
- matchRefCommandFromNames :: EventMatchSpace -> (String -> String) -> Bool -> [String] -> EventMatcher e s
- matchPlainPrivateCommand :: EventMatcher e s
- matchNotice :: EventMatchSpace -> EventMatcher e s
- matchRef :: EventMatchSpace -> EventMatcher e s
- defaultMatch :: EventMatcher e s
Modifiers
modPleasePrefix :: String -> String Source
modPleasePrefix' :: String -> String Source
Matchers
matchPrefixedCommand :: EventMatchSpace -> Bool -> EventMatcher e s Source
matchPrefixedCommandFromSet :: EventMatchSpace -> Bool -> Maybe (CommandSet e s) -> EventMatcher e s Source
matchPrefixedCommandFromNames :: EventMatchSpace -> Bool -> Either Char (CommandSet e s) -> [String] -> EventMatcher e s Source
matchRefCommand :: EventMatchSpace -> (String -> String) -> EventMatcher e s Source
matchRefCommandFromSet :: 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