Began a complete rewrite of command and plugin management.
Wrote a command routing statement, added an IrcPlugin monad.
This commit is contained in:
parent
047a10bc9b
commit
fd8d5faf5f
12 changed files with 244 additions and 87 deletions
10
Config.hs
10
Config.hs
|
@ -9,12 +9,12 @@ import Hsbot.Types
|
|||
|
||||
-- | Imported plugins goes there
|
||||
defaultPlugins :: [String]
|
||||
defaultPlugins = [ "Ping", "Quote" ]
|
||||
defaultPlugins = [ "Ping", "Core" ]
|
||||
|
||||
-- | User server
|
||||
kro :: IrcServer
|
||||
kro = IrcServer
|
||||
{ serverAddress = "perseus"
|
||||
localhost :: IrcServer
|
||||
localhost = IrcServer
|
||||
{ serverAddress = "localhost"
|
||||
, serverPort = PortNumber 6667
|
||||
, joinChannels = ["#shbot"]
|
||||
, nickname = "hsbot"
|
||||
|
@ -27,6 +27,6 @@ kro = IrcServer
|
|||
config :: Config
|
||||
config = Config
|
||||
{ commandPrefix = '@'
|
||||
, ircServer = kro
|
||||
, ircServer = localhost
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue