summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-28 10:31:42 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-28 10:31:42 +0000
commitd30b3a0cde8bbe4a58fafc39e2f1d50197f16710 (patch)
tree3b47a8c40d2432952b216da5f097af02afea44dd
parentccb19d069074ef79a0c703aa9a343c1e3368fc82 (diff)
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@43 9f8f72e9-4bf4-416e-b76e-7d4203597157
-rw-r--r--AI.hs6
-rw-r--r--Main.hs3
2 files changed, 8 insertions, 1 deletions
diff --git a/AI.hs b/AI.hs
new file mode 100644
index 0000000..bcae182
--- /dev/null
+++ b/AI.hs
@@ -0,0 +1,6 @@
+module AI (aiRun) where
+
+import Env
+
+aiRun :: String -> Env -> IO Env
+aiRun str env = return (env)
diff --git a/Main.hs b/Main.hs
index df2c41b..4bd88dc 100644
--- a/Main.hs
+++ b/Main.hs
@@ -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,