summaryrefslogtreecommitdiff
path: root/HsBot/Cmd.hs
diff options
context:
space:
mode:
Diffstat (limited to 'HsBot/Cmd.hs')
-rw-r--r--HsBot/Cmd.hs16
1 files changed, 0 insertions, 16 deletions
diff --git a/HsBot/Cmd.hs b/HsBot/Cmd.hs
deleted file mode 100644
index 7de643e..0000000
--- a/HsBot/Cmd.hs
+++ /dev/null
@@ -1,16 +0,0 @@
-module HsBot.Cmd where
-
-import HsBot.State
-
-data Cmd = Cmd String String (State -> IO ())
-
-instance Show Cmd where
- show (Cmd a b _) = a ++ " - " ++ b
-
-cmdGet :: String -> [Cmd] -> Maybe Cmd
-cmdGet x commands =
- let command = [ (Cmd a b c) | (Cmd a b c) <- commands, a == x ]
- in if length command == 0
- then Nothing
- else Just (head command)
-