BigBrotherBot v1.5.0
System Development Information for the BigBrotherBot project.
Public Member Functions | Static Public Attributes | Static Private Attributes

b3::parsers::wop15::Wop15Parser Class Reference

Inheritance diagram for b3::parsers::wop15::Wop15Parser:
b3::parsers::wop::WopParser b3::parsers::q3a::abstractParser::AbstractParser b3::parser::Parser

List of all members.

Public Member Functions

def OnSay
def OnSayteam

Static Public Attributes

string gameName = 'wop15'

Static Private Attributes

dictionary _commands = {}
tuple _lineFormats
tuple _regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<team>[0-9]+)\s+(?P<ping>[0-9]+)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+):(?P<port>[0-9-]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I)

Member Function Documentation

def b3::parsers::wop15::Wop15Parser::OnSay (   self,
  action,
  data,
  match = None 
)
\
if self.type == b3.COMMAND:
    # we really need the second line
    text = self.read()
    if text:
msg = string.split(text[:-1], '^7: ', 1)
if not len(msg) == 2:
    return None
else:

Reimplemented from b3::parsers::wop::WopParser.

def b3::parsers::wop15::Wop15Parser::OnSayteam (   self,
  action,
  data,
  match = None 
)

Reimplemented from b3::parsers::wop::WopParser.


Member Data Documentation

dictionary b3::parsers::wop15::Wop15Parser::_commands = {} [static, private]

Reimplemented from b3::parsers::wop::WopParser.

Initial value:
(
        #Generated with : WOP version 1.5
        #ClientConnect: 0 014D28A78B194CDA9CED1344D47B903B 84.167.190.158
        re.compile(r'^(?P<action>[a-z]+):\s(?P<data>(?P<cid>[0-9]+)\s(?P<cl_guid>[0-9a-z]{32})\s+(?P<ip>[0-9.]+))$', re.IGNORECASE),
        #ClientConnect: 2  151.16.71.226
        re.compile(r'^(?P<action>[a-z]+):\s(?P<data>(?P<cid>[0-9]+)\s+(?P<ip>[0-9.]+))$', re.IGNORECASE),
        #Bot connecting
        #ClientConnect: 0
        re.compile(r'^(?P<action>ClientConnect):\s*(?P<data>(?P<bcid>[0-9]+))$', re.IGNORECASE),

        #Kill: $attacker-cid $means-of-death $target-cid
        #Kill: 2 MOD_INJECTOR 0
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>(?P<acid>[0-9]+)\s(?P<aweap>[0-9a-z_]+)\s(?P<cid>[0-9]+))$', re.IGNORECASE),
        #Say: 0 insta machen?
        #Item: 3 ammo_spray_n
        re.compile(r'^(?P<action>[a-z]+):\s*(?P<data>.*)$', re.IGNORECASE)
    )

Reimplemented from b3::parsers::wop::WopParser.

tuple b3::parsers::wop15::Wop15Parser::_regPlayer = re.compile(r'^(?P<slot>[0-9]+)\s+(?P<score>[0-9-]+)\s+(?P<team>[0-9]+)\s+(?P<ping>[0-9]+)\s+(?P<name>.*?)\s+(?P<last>[0-9]+)\s+(?P<ip>[0-9.]+):(?P<port>[0-9-]+)\s+(?P<qport>[0-9]+)\s+(?P<rate>[0-9]+)$', re.I) [static, private]

Reimplemented from b3::parsers::wop::WopParser.

string b3::parsers::wop15::Wop15Parser::gameName = 'wop15' [static]

Reimplemented from b3::parsers::wop::WopParser.


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