1 -- | This is the configuration file, which specifies
2 -- what servers the bot joins, the prefix for commands,
3 -- and what plugins are enabled
4 module Config
(Config
(..),config
) where
7 import Infinity
.Plugins
8 -- After this point, you should include any plugins you want
9 -- to have included into the bot. Naturally, you can reconfigure
11 import Infinity
.Plugins
.HelloWorld
12 import Infinity
.Plugins
.StateTest
13 import Infinity
.Plugins
.Fortune
14 import Infinity
.Plugins
.System
15 import Infinity
.Plugins
.Unlambda
17 -- | Configuration data type, specifies command
18 -- prefixes and all servers that're connected to
19 data Config
= Config
{
20 commandPrefixes
:: String, -- ^ command prefixes, i.e. @[\'>\',\'@\',\'?\']@
21 servers
:: [Server
], -- ^ list of 'Server'\'s to connect to.
22 enabledplugins
:: [IModule
] -- ^ List of enabled plugins
25 -- | Describes a single IRC Server, you can just follow the
26 -- same template. To see the full datatype, check Infinity/Core.hs
28 address
= "irc.freenode.org",
30 channels
= fromList
["#bot-battle-royale"],
31 nickname
= "infinitybot",
33 realname
= "time copper",
34 administrators
= fromList
["thoughtpolice"]
39 commandPrefixes
= ['?
','@','>'],
42 [ -- Put the desired plugins' data constructors