Exemplo n.º 1
0
 def __init__(self, name, tasclient):
     IPlugin.__init__(self, name, tasclient)
     self.sock = self.tasclient.socket
     self.app = None
     self.hosted = 0
     self.battleowner = ""
     self.battleid = 0
     self.status = 0
     self.pr = 0
     self.noowner = True
     self.script = ""
     self.used = 0
     self.hosttime = 0.0
     self.redirectjoins = False
     self.gamestarted = False
     if platform.system() == "Windows":
         self.scriptbasepath = os.environ['USERPROFILE']
     else:
         self.scriptbasepath = os.environ['HOME']
     self.redirectspring = False
     self.redirectbattleroom = False
     self.users = dict()
     self.logger.debug("INIT MoTH")
     self.engineversion = ""
     self.u = None
Exemplo n.º 2
0
	def __init__(self,name,tasclient):
		IPlugin.__init__(self,name,tasclient)
		self.ul = []
		self.listfull = False
		self.bots = dict()
		self.disabled = False
		self.botstatus = dict()
Exemplo n.º 3
0
	def __init__(self,name,tasclient):
		IPlugin.__init__(self,name,tasclient)
		self.botpid = dict() # slot -> bot pid
		self.botstatus = [] # slot -> bot already spawned
		self.battleswithbots = [] # battle id -> bot already in
		self.ladderlist = dict() # id -> ladder name
		self.ladderoptions = dict() # id -> ladder options
Exemplo n.º 4
0
	def __init__(self, name, tasclient):
		IPlugin.__init__(self, name, tasclient)
		self.admins = []
		self.bots = []
		self.waiting_for_reply = []
		#this equals 130s since ping time is hardcoded to 10s
		self.when_killed_wait = 13
Exemplo n.º 5
0
 def __init__(self, name, tasclient):
     IPlugin.__init__(self, name, tasclient)
     self.admins = []
     self.bots = []
     self.waiting_for_reply = []
     #this equals 130s since ping time is hardcoded to 10s
     self.when_killed_wait = 13
Exemplo n.º 6
0
	def __init__(self,name,tasclient):
		IPlugin.__init__(self,name,tasclient)
		self.sock = self.tasclient.socket
		self.app = None
		self.hosted = 0
		self.battleowner = ""
		self.battleid = 0
		self.status = 0
		self.pr = 0
		self.noowner = True
		self.script = ""
		self.used = 0
		self.hosttime = 0.0
		self.redirectjoins = False
		self.gamestarted = False
		if platform.system() == "Windows":
			self.scriptbasepath = os.environ['USERPROFILE']
		else:
			self.scriptbasepath = os.environ['HOME']
		self.redirectspring = False
		self.redirectbattleroom = False
		self.users = dict()
		self.logger.debug( "INIT MoTH" )
		self.engineversion = ""
		self.u = None
Exemplo n.º 7
0
	def __init__(self,name,tasclient):
		IPlugin.__init__(self,name,tasclient)
		self.slavetomanager = dict()
		self.slavetousagecount = dict()
		self.slavetoingamecount = dict()
		self.battlestartingtime = dict()
		self.managerlist = []
		try:
			self.statsfilename = os.path.join( self.app.config.get('tasbot',"cfg_dir"),"relaystats.txt")
		except Exception:
			self.statsfilename = "relaystats.txt"
Exemplo n.º 8
0
	def __init__(self,name,tasc):
		IPlugin.__init__(self,name,tasc)
		self.nick = tasc.main.config.get('tasbot', "nick")
		self._lastchecked = datetime.datetime.now()
		self._MaxInterval = datetime.timedelta(seconds = 600)
		self._filename = 'smurfs.db'
		self._channels = tasc.main.config.get_optionlist('join_channels', 'channels')
		self._clans = tasc.main.config.get_optionlist('smurfbot', 'clans')
		self._users = tasc.main.config.get_optionlist('smurfbot', 'users')
		self._silent = False
		self._mylist = dict()
Exemplo n.º 9
0
 def __init__(self, name, tasclient):
     IPlugin.__init__(self, name, tasclient)
     self.slavetomanager = dict()
     self.slavetousagecount = dict()
     self.slavetoingamecount = dict()
     self.battlestartingtime = dict()
     self.managerlist = []
     try:
         self.statsfilename = os.path.join(
             self.app.config.get('tasbot', "cfg_dir"), "relaystats.txt")
     except Exception:
         self.statsfilename = "relaystats.txt"
Exemplo n.º 10
0
 def __init__(self, name, tasc):
     IPlugin.__init__(self, name, tasc)
     self._msg = []
     self._in_session = False
     self._attending = set()
     self._logdir = tasc.main.config.get("meetbot", "logdir")
     try:
         os.mkdir(self._logdir)
     except:
         pass
     self._urlbase = tasc.main.config.get("meetbot", "urlbase")
     self._channel = tasc.main.config.get("meetbot", "channel")
     self._tops = []
     self.nick = tasc.main.config.get("tasbot", "nick")
Exemplo n.º 11
0
	def __init__(self,name,tasclient):
		IPlugin.__init__(self,name,tasclient)
Exemplo n.º 12
0
	def __init__(self,name,tasclient):
		IPlugin.__init__(self,name,tasclient)
		self.chans = []
		self.admins = []
Exemplo n.º 13
0
 def __init__(self,name,tasclient):
         IPlugin.__init__(self,name,tasclient)