diff options
| -rw-r--r-- | AI.hs | 6 | ||||
| -rw-r--r-- | Main.hs | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -0,0 +1,6 @@ +module AI (aiRun) where + +import Env + +aiRun :: String -> Env -> IO Env +aiRun str env = return (env) @@ -2,6 +2,7 @@ module Main where import System +import AI import Cmd import Conf import Env @@ -30,7 +31,7 @@ dispatch msg sendMessage env@(Env state conf) = dispatch' msg cmdAction state return (env) Nothing -> return (env) - dispatch' _ = return (env) + dispatch' _ = aiRun msg env commands = [ Cmd "!h" "Prints help" printHelp, Cmd "!i" "Prints infos" printInfos, |
