Rationalized the way bot configs are handled.
This commit is contained in:
parent
daea135424
commit
57bec4921b
5 changed files with 24 additions and 31 deletions
|
@ -1,18 +1,9 @@
|
|||
module Hsbot.Config
|
||||
( Config(..)
|
||||
, defaultConfig
|
||||
( BotConfig (..)
|
||||
) where
|
||||
|
||||
import Hsbot.Irc.Config (IrcConfig)
|
||||
import Hsbot.Irc.Config
|
||||
|
||||
-- | Configuration data type
|
||||
data Config = Config
|
||||
{ ircConfigs :: [IrcConfig]
|
||||
}
|
||||
|
||||
-- | User configuration
|
||||
defaultConfig :: Config
|
||||
defaultConfig = Config
|
||||
{ ircConfigs = []
|
||||
}
|
||||
data BotConfig = IrcBotConfig IrcConfig
|
||||
|
||||
|
|
Reference in a new issue