Safe Haskell | None |
---|---|
Language | Haskell98 |
- simpleBot :: BotConf -> [BotPartT IO ()] -> IO ([ThreadId], IO ())
- simpleBot' :: Maybe (Chan Message -> IO ()) -> Logger -> Maybe (Int, Int) -> HostName -> PortID -> ByteString -> String -> User -> [BotPartT IO ()] -> IO ([ThreadId], IO ())
- data BotConf = BotConf {}
- nullBotConf :: BotConf
- data User = User {}
- nullUser :: User
Documentation
:: BotConf | Bot configuration |
-> [BotPartT IO ()] | bot parts (must include |
-> IO ([ThreadId], IO ()) |
|
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 |
-> Maybe (Int, Int) | rate limiter settings (burst length, delay in microseconds) |
-> HostName | irc server to connect |
-> PortID | irc port to connect to (usually, 'PortNumber 6667') |
-> ByteString | irc nick |
-> String | command prefix |
-> User | irc user info |
-> [BotPartT IO ()] | bot parts (must include |
-> IO ([ThreadId], IO ()) |
|
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 | |
|
User | |
|