Safe Haskell | Safe-Infered |
---|
Documentation
:: BotConf | Bot configuration |
-> [BotPartT IO ()] | bot parts (must include |
-> IO [ThreadId] |
|
simpleBot connects to the server and handles messages using the supplied BotPartTs
the 'Chan Message' for the optional logging function will include all received and sent messages. This means that the bots output will be included in the logs.
:: Maybe (Chan Message -> IO ()) | optional logging function |
-> Logger | application logging |
-> HostName | irc server to connect |
-> PortID | irc port to connect to (usually, 'PortNumber 6667') |
-> String | irc nick |
-> String | command prefix |
-> User | irc user info |
-> [BotPartT IO ()] | bot parts (must include |
-> IO [ThreadId] |
|
simpleBot' connects to the server and handles messages using the supplied BotPartTs
the 'Chan Message' for the optional logging function will include all received and sent messages. This means that the bots output will be included in the logs.
Bot configuration
BotConf | |
|