ircbot-0.3.0: A library for writing irc bots

Safe HaskellSafe-Infered

Network.IRC.Bot.Commands

Contents

Synopsis

Commands

data Ping Source

Constructors

Ping HostName 

class ToMessage a whereSource

Methods

toMessage :: a -> MessageSource

askSenderNickName :: BotMonad m => m (Maybe String)Source

get the nickname of the user who sent the message

replyTo :: BotMonad m => m (Maybe String)Source

figure out who to reply to for a given Message

If message was sent to a #channel reply to the channel. Otherwise reply to the sender.

askReceiver :: (Alternative m, BotMonad m) => m (Maybe String)Source

returns the receiver of a message

if multiple receivers, it returns only the first