Advertisement

You are here: Home > Anope > Chanstats


Description

This specialized collection is 3 separate modules in one big group module.

  • Enabeled/Disabeled using the ./extras command line configuration tool.
  • NOTE: Requires ChanServ, NickServ, and m_mysql modules to be active.
m_chanstats 
name= 
Name of the module
engine= 
backend internal name of this engine
prefix= :SQL database table prefix
smileyshappy= :defined happy emoticons
smileyssad= 
defined sad emoticons
smileysother= 
defined other emoticons
ns_def_chanstats= 
define stats for newly registered nicknames
cs_def_chanstats= 
define stats for newly registered channels
cs_fantasy_stats 
name= 
Name of module
cs_fantasy_top 
name= 
Name of module

Commands

m_chanstats 
ChanServ 
SET CHANSTATS
NickServ 
SET CHANSTATS
SASET CHANSTATS
cs_fantasy_stats 
ChanServ 
STATS
GSTATS
fantasy 
!STATS
!GSTATS
cs_fantasy_top 
ChanServ 
TOP
TOP10
GTOP
GTOP10


Default Configuration

/*
 * Example configuration file for Chanstats.
 * Make sure BotServ, ChanServ and NickServ are running.
 */
 
module
{
        name = "m_chanstats"
 
        /*
         * The name of this engine.
         * This must match with the name of an SQL engine block.
         */
 
        engine = "mysql/main"
 
        /*
         * An optional prefix to prepended to the name of each created table.
         * Do not use the same prefix for other programs.
         */
        prefix = "anope_"
 
        smileyshappy = ":) :-) ;) ;-) :D :-D :P :-P"
        smileyssad = ":( :-( ;( ;-("
        smileysother = ":/ :-/"
 
        /*
         * Enable Chanstats for newly registered nicks / channels.
         */
        ns_def_chanstats = yes
        cs_def_chanstats = yes
}
command { service = "ChanServ"; name = "SET CHANSTATS"; command = "chanserv/set/chanstats"; }
command { service = "NickServ"; name = "SET CHANSTATS"; command = "nickserv/set/chanstats"; }
command { service = "NickServ"; name = "SASET CHANSTATS"; command = "nickserv/saset/chanstats"; }
 
module { name = "cs_fantasy_stats" }
command { service = "ChanServ"; name = "STATS"; command = "chanserv/stats"; }
command { service = "ChanServ"; name = "GSTATS"; command = "chanserv/gstats"; }
fantasy { name = "STATS"; command = "chanserv/stats"; }
fantasy { 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"; }
fantasy { name = "TOP"; command = "chanserv/top"; }
fantasy { name = "TOP10"; command = "chanserv/top10"; }
fantasy { name = "GTOP"; command = "chanserv/gtop"; }
fantasy { name = "GTOP10"; command = "chanserv/gtop10"; }


/*
* Example configuration file for the irc2sql gateway
*
*/

service
{
/*
* The name of the StatServ client.
*/
nick = "StatsBot"
user = "ss"
host = "statsbot.zemra.org"
gecos = "Statistical Service"
modes = "+o"
channels = "@#services,@#staff"
}
module
{
name = "irc2sql"

/*
* The name of the client that should send the CTCP VERSION requests.
* It must already exist or must be defined in the following service block.
*/
client = "Global"
engine = "mysql"
prefix = "anope"
geoip_database = "country"
ctcpuser = "yes"
ctcpeob = "yes"
}

services.conf code


/*
* Chanstats module.
* Requires a MySQL Database.
*/
include
{
type = "file"
name = "chanstats.conf"

}
module
{
name = "m_mysql"

mysql
{
/* The name of this service. */
name = "mysql"
database = "anope"
server = "127.0.0.1"
username = "anope"
password = "zemrapass"
port = 3306
}
}

/*
* IRC2SQL Gateway
* This module collects data about users, channels and servers. It doesn't build stats
* itself, however, it gives you the database, it's up to you how you use it.
*
* Requires a MySQL Database and MySQL version 5.5 or higher
*/
include
{
type = "file"
name = "irc2sql.conf"
}