|
|
|
@ -36,8 +36,8 @@ import Text.Printf.TH |
|
|
|
|
|
|
|
|
|
|
|
startBot :: Config -> IO () |
|
|
|
startBot :: Config -> IO () |
|
|
|
startBot conf = forever $ do |
|
|
|
startBot conf = forever $ do |
|
|
|
killMVar <- newEmptyMVar |
|
|
|
|
|
|
|
infoM "ATradeBot" "Starting session" |
|
|
|
infoM "ATradeBot" "Starting session" |
|
|
|
|
|
|
|
killMVar <- newEmptyMVar |
|
|
|
mbsess <- session |
|
|
|
mbsess <- session |
|
|
|
(cHostname conf) |
|
|
|
(cHostname conf) |
|
|
|
(Just ((\_ -> [scramSha1 (cUsername conf) Nothing (cPassword conf)]), Just "bot")) |
|
|
|
(Just ((\_ -> [scramSha1 (cUsername conf) Nothing (cPassword conf)]), Just "bot")) |
|
|
|
|