Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- doTGMSG :: IrcMessage -> Telegram ()
- doIGNORE :: IrcMessage -> Telegram ()
- doTGMSG' :: [String] -> Nick -> IrcMessage -> Nick -> Telegram ()
- doPersonalMsg :: [String] -> IrcMessage -> String -> String -> Telegram ()
- doPublicMsg :: [String] -> IrcMessage -> Nick -> String -> String -> Telegram ()
- doMsg :: IrcMessage -> String -> String -> Nick -> Telegram ()
- docmd :: IrcMessage -> Nick -> [Char] -> String -> Telegram ()
- closests :: String -> [String] -> (Int, [String])
- maybeCommand :: String -> String -> Maybe String
Documentation
doTGMSG :: IrcMessage -> Telegram () Source #
In order to read messages from a different plugin, it is necessary to set a callback with a known label. This function is a main entry point as a plugin callback.
Since we needed an extended functionality from eval
plugin,
we used these non-exported functions from corresponding lambdabot-haskell-plugins
module.
doIGNORE :: IrcMessage -> Telegram () Source #
:: [String] | Commands. |
-> Nick | My name. |
-> IrcMessage | IRC Message. |
-> Nick | Target name. |
-> Telegram () |
doPersonalMsg :: [String] -> IrcMessage -> String -> String -> Telegram () Source #
doPublicMsg :: [String] -> IrcMessage -> Nick -> String -> String -> Telegram () Source #