diff options
| author | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-03-28 11:52:17 +0000 |
|---|---|---|
| committer | pb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157> | 2010-03-28 11:52:17 +0000 |
| commit | ed66eb310a9ec78901e6a3be2275f9de62ad5708 (patch) | |
| tree | f37e37f47e0ea693200d1a0783796cb45e6bdb2c /HsBot/Logics | |
| parent | 3d7e9915c4fab6f91f11b3de66ac8bbcb8b3c0c7 (diff) | |
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@52 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'HsBot/Logics')
| -rw-r--r-- | HsBot/Logics/Dummy.hs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/HsBot/Logics/Dummy.hs b/HsBot/Logics/Dummy.hs index a873f8a..be32a50 100644 --- a/HsBot/Logics/Dummy.hs +++ b/HsBot/Logics/Dummy.hs @@ -1,10 +1,13 @@ module HsBot.Logics.Dummy (dummyRun) where import HsBot.Base.Env +import HsBot.Base.State dummyRun :: String -> SendMessage -> Env -> IO Env -dummyRun str sendMessage env = do - --sendMessage "Hello World" - putStrLn str +dummyRun str sendMessage env@(Env state _) = do + if isReady state + --then sendMessage "Hello World" + then putStrLn $ "::::" ++ str + else putStrLn str return (env) |
