BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::plugins::spamcontrol::SpamcontrolPlugin Class Reference

Inheritance diagram for b3::plugins::spamcontrol::SpamcontrolPlugin:
b3::plugin::Plugin b3::plugin::Plugin

List of all members.

Public Member Functions

def onLoadConfig
def onStartup
def getCmd
def getTime
def cmd_spamins
def onEvent
def onChat
def add_spam_points
def onLoadConfig
def onStartup
def getTime
def cmd_spamins
def onEvent
def onChat
def add_spam_points

Public Attributes

 eventHanlders

Static Public Attributes

dictionary eventHanlders = {}

Private Attributes

 _maxSpamins
 _modLevel
 _falloffRate
 _adminPlugin

Static Private Attributes

int _maxSpamins = 10
int _modLevel = 20
float _falloffRate = 6.5

Member Function Documentation

def b3::plugins::spamcontrol::SpamcontrolPlugin::add_spam_points (   self,
  client,
  points,
  text 
)
def b3::plugins::spamcontrol::SpamcontrolPlugin::add_spam_points (   self,
  client,
  points,
  text 
)
def b3::plugins::spamcontrol::SpamcontrolPlugin::cmd_spamins (   self,
  data,
  client,
  cmd = None 
)
\
[name] - display a spamins level
def b3::plugins::spamcontrol::SpamcontrolPlugin::cmd_spamins (   self,
  data,
  client,
  cmd = None 
)
\
[name] - display a spamins level
def b3::plugins::spamcontrol::SpamcontrolPlugin::getCmd (   self,
  cmd 
)
return the method for a given command  
def b3::plugins::spamcontrol::SpamcontrolPlugin::getTime (   self)
just to ease automated tests 
def b3::plugins::spamcontrol::SpamcontrolPlugin::getTime (   self)
just to ease automated tests 
def b3::plugins::spamcontrol::SpamcontrolPlugin::onChat (   self,
  event 
)
def b3::plugins::spamcontrol::SpamcontrolPlugin::onChat (   self,
  event 
)
def b3::plugins::spamcontrol::SpamcontrolPlugin::onEvent (   self,
  event 
)
\
Called by B3 when a registered event is encountered. You must overwrite
this to intercept events.

Reimplemented from b3::plugin::Plugin.

def b3::plugins::spamcontrol::SpamcontrolPlugin::onEvent (   self,
  event 
)
\
Called by B3 when a registered event is encountered. You must overwrite
this to intercept events.

Reimplemented from b3::plugin::Plugin.

def b3::plugins::spamcontrol::SpamcontrolPlugin::onLoadConfig (   self)
\
This is called after loadConfig(). Any plugin private variables loaded
from the config need to be reset here.

Reimplemented from b3::plugin::Plugin.

def b3::plugins::spamcontrol::SpamcontrolPlugin::onLoadConfig (   self)
\
This is called after loadConfig(). Any plugin private variables loaded
from the config need to be reset here.

Reimplemented from b3::plugin::Plugin.

def b3::plugins::spamcontrol::SpamcontrolPlugin::onStartup (   self)
\
Called after the plugin is created before it is started. Overwrite this
for anything you need to initialize you plugin with.

Reimplemented from b3::plugin::Plugin.

def b3::plugins::spamcontrol::SpamcontrolPlugin::onStartup (   self)
\
Called after the plugin is created before it is started. Overwrite this
for anything you need to initialize you plugin with.

Reimplemented from b3::plugin::Plugin.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties