Rewrote the whole architecture.
This commit is contained in:
parent
d4103e3e18
commit
57f559f3a1
8 changed files with 230 additions and 210 deletions
11
Config.hs
11
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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue