Safe Haskell | None |
---|
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 |
-> Maybe PortID | irc port to connect to (usually, 'PortNumber 6667') |
-> String | irc nick |
-> User | irc user info |
-> String | channel to join |
-> [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