Exemple #1
0
 def __init__(self, channel):
     self.channel = channel
     # TODO - move this into d20-specific code somewhere
     self.initiatives = []
     self.nicks = Set() # TODO - add a wrapper function for fixing bindings
                        # when nicks are removed or added
     alias.registerAliasHook(('init',), self.doInitiative)
     self.observers = Set()
Exemple #2
0
    def __init__(self, *args, **kwargs):
        self.encounters = []
        self.party = encounter.Encounter()
        self.wtf = 0  # number of times a "wtf" has occurred recently.
        # reset wtf's every 30 seconds
        self.resetter = task.LoopingCall(self._resetWtfCount).start(30.0)

        self.responding = 0  # don't start responding until i'm in a channel
        self.club = encounter.Club()
        self._loadParty()
        # TODO - move this into d20-specific code somewhere
        self.initiatives = []
        alias.registerAliasHook(('init', ), self.doInitiative)
Exemple #3
0
    def __init__(self, *args, **kwargs):
        self.encounters = []
        self.party = encounter.Encounter()
        self.wtf = 0  # number of times a "wtf" has occurred recently.
        # reset wtf's every 30 seconds 
        self.resetter = task.LoopingCall(self._resetWtfCount).start(30.0)

        self.responding = 0 # don't start responding until i'm in a channel
        self.club = encounter.Club()
        self._loadParty()
        # TODO - move this into d20-specific code somewhere
        self.initiatives = []
        alias.registerAliasHook(('init',), self.doInitiative)
Exemple #4
0
 def __init__(self, channel):
     session.Session.__init__(self, channel)
     self.initiatives = []
     alias.registerAliasHook(('init',), self.doInitiative)