ircbot-0.6.5.3: A library for writing IRC bots

Safe HaskellNone
LanguageHaskell2010

Network.IRC.Bot.Commands

Contents

Synopsis

Documentation

Commands

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

data Ping Source #

Constructors

Ping HostName 
Instances
Eq Ping Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

(==) :: Ping -> Ping -> Bool Source #

(/=) :: Ping -> Ping -> Bool Source #

Data Ping Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Ping -> c Ping Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Ping Source #

toConstr :: Ping -> Constr Source #

dataTypeOf :: Ping -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Ping) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Ping) Source #

gmapT :: (forall b. Data b => b -> b) -> Ping -> Ping Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Ping -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Ping -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Ping -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Ping -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Ping -> m Ping Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Ping -> m Ping Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Ping -> m Ping Source #

Ord Ping Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Read Ping Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Show Ping Source # 
Instance details

Defined in Network.IRC.Bot.Commands

class ToMessage a where Source #

Methods

toMessage :: a -> Message Source #

Instances
ToMessage Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

toMessage :: Pong -> Message Source #

ToMessage PrivMsg Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

toMessage :: PrivMsg -> Message Source #

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

data Pong Source #

Constructors

Pong HostName 
Instances
Eq Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

(==) :: Pong -> Pong -> Bool Source #

(/=) :: Pong -> Pong -> Bool Source #

Data Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Pong -> c Pong Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Pong Source #

toConstr :: Pong -> Constr Source #

dataTypeOf :: Pong -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Pong) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Pong) Source #

gmapT :: (forall b. Data b => b -> b) -> Pong -> Pong Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pong -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pong -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Pong -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Pong -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pong -> m Pong Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pong -> m Pong Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pong -> m Pong Source #

Ord Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Read Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Show Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

ToMessage Pong Source # 
Instance details

Defined in Network.IRC.Bot.Commands

Methods

toMessage :: Pong -> Message 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