diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | data/chanstats.example.conf | 63 | ||||
| -rw-r--r-- | data/example.conf | 14 |
3 files changed, 76 insertions, 3 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 94aa3d8ca..b2a521c95 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,6 +1,6 @@ # Only install example.chk and example.conf from this directory # NOTE: I would've had this just find all files in the directory, but that would include files not needed (like this file) -set(DATA example.chk botserv.example.conf example.conf hostserv.example.conf modules.example.conf operserv.example.conf chanserv.example.conf global.example.conf memoserv.example.conf nickserv.example.conf) +set(DATA example.chk botserv.example.conf example.conf hostserv.example.conf modules.example.conf operserv.example.conf chanserv.example.conf global.example.conf memoserv.example.conf nickserv.example.conf chanstats.example.conf) install(FILES ${DATA} DESTINATION data ) diff --git a/data/chanstats.example.conf b/data/chanstats.example.conf new file mode 100644 index 000000000..2ada76b98 --- /dev/null +++ b/data/chanstats.example.conf @@ -0,0 +1,63 @@ +/* + * Example configuration file for chanstats + * Make sure BotServ, ChanServ and NickServ are running. + */ + +module { name = "m_chanstats" } + +chanstats +{ + /* + * WARNING: DO NOT USE THE SAME DATABASE AS db_mysql! db_mysql drops ALL tables in the db! + * For this, we add a second mysql{ } block after the chanstats{ } configuration block + * and give it another engine name, so m_mysql opens a second connection to the mysql server. + * / + + /* + * The name of this engine. + * This must match with the name in the mysql{ } block + */ + + engine = "mysql/chanstats" + + + smileyshappy = ":) :-) ;) :D :-D" + smileyssad = ":( :-( ;( ;-(" + smileysother = ":/" + + /* + * Enable Chanstats for new registered nicks / channels + * set it to 0 to disable it. + */ + NSDefChanstats = 1 + CSDefChanstats = 1 +} + +mysql +{ + name = "mysql/chanstats" + database = "anope" + server = "127.0.0.1" + username = "anope" + password = "anope" + port = 3306 +} + + + + +module { name = "cs_set_chanstats" } +command { service = "ChanServ"; name = "SET CHANSTATS"; command = "chanserv/set/chanstats"; } + +module { name = "ns_set_chanstats" } +command { service = "NickServ"; name = "SET CHANSTATS"; command = "nickserv/set/chanstats"; } + +module { name = "cs_fantasy_stats" } +command { service = "ChanServ"; name = "STATS"; command = "chanserv/stats"; } +command { service = "ChanServ"; name = "GSTATS"; command = "chanserv/gstats"; } + +module { name = "cs_fantasy_top" } +command { service = "ChanServ"; name = "TOP"; command = "chanserv/top"; } +command { service = "ChanServ"; name = "TOP10"; command = "chanserv/top10"; } +command { service = "ChanServ"; name = "GTOP"; command = "chanserv/gtop"; } +command { service = "ChanServ"; name = "GTOP10"; command = "chanserv/gtop10"; } diff --git a/data/example.conf b/data/example.conf index e0b649316..a17b51a36 100644 --- a/data/example.conf +++ b/data/example.conf @@ -1172,7 +1172,17 @@ module { name = "enc_md5" } /* Extra (optional) modules */ include { - type = "file" - name = "modules.example.conf" + type = "file" + name = "modules.example.conf" } +/* + * Chanstats Modules + * Requires a MySQL Database + */ + +#include +#{ +# type = "file" +# name = "chanstats.example.conf" +#} |
