Add Bot module
This commit is contained in:
parent
a4e49a57ba
commit
6ba2ddfaea
2 changed files with 202 additions and 0 deletions
16
test/bottest.hs
Normal file
16
test/bottest.hs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import qualified EuphApi.Bot as E
|
||||
import qualified EuphApi.Connection as E
|
||||
|
||||
myBotConfig :: E.BotConfig () ()
|
||||
myBotConfig = E.BotConfig
|
||||
{ E.botAddress = "euphoria.io"
|
||||
, E.botRoom = "test"
|
||||
, E.botPassword = Nothing
|
||||
, E.botNick = "EuphApiTestBot"
|
||||
, E.botHandler = E.respondToPing
|
||||
, E.botInfo = ()
|
||||
, E.botNewConnectionInfo = return ()
|
||||
, E.botReconnectPolicy = E.defaultReconnectPolicy
|
||||
}
|
||||
|
||||
main = E.runBot myBotConfig
|
||||
Loading…
Add table
Add a link
Reference in a new issue