2018-11-08 18:36:25 +01:00
|
|
|
module Main where
|
|
|
|
|
|
|
|
import Network.WebSockets (ClientApp, runClient)
|
|
|
|
import Control.Monad.Reader (runReaderT)
|
|
|
|
import Control.Monad.State (runStateT)
|
|
|
|
import Config (host, port, path)
|
2019-08-19 18:48:11 +02:00
|
|
|
import Automaton (start)
|
2018-11-08 18:36:25 +01:00
|
|
|
|
|
|
|
bot :: ClientApp ()
|
2019-08-19 18:48:11 +02:00
|
|
|
bot connection = runReaderT Automaton.start connection
|
2018-11-08 18:36:25 +01:00
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
main =
|
|
|
|
runClient host port path bot
|