Safe Haskell | Safe-Infered |
---|
- cmd :: (Functor m, MonadPlus m, BotMonad m) => Command -> m ()
- data Ping = Ping HostName
- ping :: (Functor m, MonadPlus m, BotMonad m) => m Ping
- data PrivMsg = PrivMsg {}
- privMsg :: (Functor m, MonadPlus m, BotMonad m) => m PrivMsg
- toPrivMsg :: Message -> Maybe PrivMsg
- class ToMessage a where
- sendCommand :: (ToMessage c, BotMonad m, Functor m) => c -> m ()
- data Pong = Pong HostName
- askSenderNickName :: BotMonad m => m (Maybe String)
- replyTo :: BotMonad m => m (Maybe String)
- askReceiver :: (Alternative m, BotMonad m) => m (Maybe String)
Commands
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