summaryrefslogtreecommitdiff
path: root/Conf.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Conf.hs')
-rw-r--r--Conf.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Conf.hs b/Conf.hs
new file mode 100644
index 0000000..b4b2477
--- /dev/null
+++ b/Conf.hs
@@ -0,0 +1,20 @@
+module Conf where
+
+import qualified Data.Map as M
+
+type Conf = M.Map String String
+
+makeConf = M.fromList
+ [ ("name", "HsBot")
+ , ("version", "v0.0")
+ , ("database", "hsbot.db")
+ , ("maxMessageSize", "400")
+ , ("admin", "rantanplan")
+ , ("ircServer", "irc.german-elite.net")
+ , ("ircChannel", "#buetow.org")
+ , ("ircNick", "hotdog")
+ , ("ircPort", "6667")
+ ]
+
+get :: (Monad m) => String -> Conf -> m String
+get = M.lookup