{- This file is part of irc-fun-bot. - - Written in 2015 by fr33domlover <fr33domlover@rel4tion.org>. - - ♡ Copying is an act of love. Please copy, reuse and share. - - The author(s) have dedicated all copyright and related and neighboring - rights to this software to the public domain worldwide. This software is - distributed without any warranty. - - You should have received a copy of the CC0 Public Domain Dedication along - with this software. If not, see - <http://creativecommons.org/publicdomain/zero/1.0/>. -} -- | 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). module Network.IRC.Fun.Bot.EventMatch ( matchPrefixedCommandC , matchPrefixedCommandP , matchPrefixedCommand , matchRefCommandC , matchRefCommandP , matchRefCommand , matchRefCommandFromSetC , matchRefCommandFromSetP , matchRefCommandFromSet , matchRefCommandFromNamesC , matchRefCommandFromNamesP , matchRefCommandFromNames , matchPlainPrivateCommand , matchNoticeC , matchNoticeP , matchNotice , matchRefC , matchRefP , matchRef , defaultMatch ) where import Network.IRC.Fun.Bot.Internal.Event