Got a working hsbot-irc back online!
This commit is contained in:
parent
03795ac2f7
commit
8c59b45dc7
7 changed files with 59 additions and 111 deletions
|
@ -8,6 +8,7 @@ import System.IO
|
|||
|
||||
import Hsbot.Irc.CLI
|
||||
import Hsbot.Irc.Config
|
||||
import Hsbot.Irc.Core
|
||||
|
||||
-- | Main function
|
||||
main :: IO ()
|
||||
|
@ -26,4 +27,8 @@ main = do
|
|||
-- We find and parse the config file
|
||||
ircConfig <- getIrcConfig $ optConfigFile opts
|
||||
when (optDebug opts) . putStrLn $ "[hsbot-irc] Compiled config :\n" ++ (show ircConfig)
|
||||
-- Finally we get into the ircbot stuff
|
||||
case optDebug opts of
|
||||
True -> startIrcbot opts ircConfig
|
||||
False -> startIrcbot opts ircConfig -- TODO : fork process in background
|
||||
|
||||
|
|
Reference in a new issue