summaryrefslogtreecommitdiff
path: root/Config.hs
blob: fbf98b1b72b20e9e4773fe932af4f39f9eb2876c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module Config
    ( config
    , defaultPlugins
    ) where

import Network

import Hsbot.Types

-- | Imported plugins goes there
defaultPlugins :: [String]
defaultPlugins = []

-- | User server
localhost :: IrcServer
localhost = IrcServer
    { serverAddress  = "localhost"
    , serverPort     = PortNumber 6667
    , joinChannels   = ["#shbot", "#geek"]
    , nickname       = "hsbot"
    , password       = ""
    , realname       = "The One True bot, with it's haskell soul."
    , administrators = ["julien"]
    }

-- | User configuration
config :: Config
config = Config
    { commandPrefix = '@'
    , ircServer     = localhost
    }