{- This file is part of irc-fun-bot. - - Written in 2015 by fr33domlover . - - ♡ 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 - . -} -- | 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). module Network.IRC.Fun.Bot.EventMatch ( -- * Modifiers modId , modPrefix , modPrefixes , modPrefixCI , modPrefixesCI , modPleasePrefix , modPleasePrefix' -- * Matchers , matchPrefixedCommand , matchPrefixedCommandFromSet , matchPrefixedCommandFromNames , matchRefCommand , matchRefCommandFromSet , matchRefCommandFromNames , matchPlainPrivateCommand , matchNotice , matchRef , defaultMatch ) where import Network.IRC.Fun.Bot.Internal.Event