summaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorJulien Dessaux2010-02-04 20:27:22 +0100
committerJulien Dessaux2010-02-04 20:27:22 +0100
commit57f559f3a119b400e4f6288d3b5753185b8f19a7 (patch)
tree76bcd9a7e3980b8a79f64d46e5ae75a362dcd486 /Config.hs
parentRebooting now works great, thanks to the communication channel preservation. (diff)
downloadhsbot-57f559f3a119b400e4f6288d3b5753185b8f19a7.tar.gz
hsbot-57f559f3a119b400e4f6288d3b5753185b8f19a7.tar.bz2
hsbot-57f559f3a119b400e4f6288d3b5753185b8f19a7.zip
Rewrote the whole architecture.
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Config.hs b/Config.hs
index a2c5a39..bbef7ab 100644
--- a/Config.hs
+++ b/Config.hs
@@ -1,17 +1,22 @@
module Config
( config
+ , defaultPlugins
) where
+import Network
+
import Hsbot.Core
-- | Imported plugins goes there
+defaultPlugins :: [String]
+defaultPlugins = [ "Ping" ]
-- | User server
kro :: IrcServer
kro = IrcServer
{ address = "kro.corp"
- , port = 6667
- , channels = ["#geek", "#shbot"]
+ , port = PortNumber 6667
+ , channels = ["#shbot"]
, nickname = "hsbot"
, password = ""
, realname = "The One True bot, with it's haskell soul."
@@ -22,6 +27,6 @@ kro = IrcServer
config :: Config
config = Config
{ commandPrefixes = ['@']
- , ircServers = [kro]
+ , ircServer = kro
}