ircbot-0.6.4: A library for writing irc bots

Safe HaskellNone
LanguageHaskell98

Network.IRC.Bot.Commands

Contents

Synopsis

Documentation

Commands

cmd :: (Functor m, MonadPlus m, BotMonad m) => Command -> m () Source

data Ping Source

Constructors

Ping HostName 

class ToMessage a where Source

Methods

toMessage :: a -> Message Source

sendCommand :: (ToMessage c, BotMonad m, Functor m) => c -> m () Source

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

get the nickname of the user who sent the message

replyTo :: BotMonad m => m (Maybe ByteString) 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 ByteString) Source

returns the receiver of a message

if multiple receivers, it returns only the first