lambdabot-telegram-plugins-0.2.1: Lambdabot for Telegram
Safe HaskellNone
LanguageHaskell2010

Lambdabot.Plugin.Telegram.Callback

Synopsis

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 #

doTGMSG' Source #

Arguments

:: [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 #

doMsg :: IrcMessage -> String -> String -> Nick -> Telegram () Source #

normal commands.

check privledges, do any spell correction, dispatch, handling possible timeouts.

docmd :: IrcMessage -> Nick -> [Char] -> String -> Telegram () Source #