fixed weird bug
This commit is contained in:
parent
362462beb9
commit
a867fb1218
1
bot.py
1
bot.py
|
@ -45,6 +45,7 @@ class Circles(teambot.Handler):
|
|||
n = sys.exc_info()
|
||||
print(n, "Inp:", m)
|
||||
traceback.print_tb(n[2])
|
||||
return
|
||||
try:
|
||||
for i in self.raw:
|
||||
self.raw[i](self,c,n,m)
|
||||
|
|
|
@ -46,7 +46,7 @@ cmds = {
|
|||
}
|
||||
|
||||
def onMessage(self, c, n, m):
|
||||
try:
|
||||
#try:
|
||||
if not n in self.xpTime:
|
||||
self.xpTime[n] = 0
|
||||
if time.time() - 60 > self.xpTime[n]:
|
||||
|
@ -54,8 +54,8 @@ def onMessage(self, c, n, m):
|
|||
giveXp(self, n)
|
||||
writeJson(self)
|
||||
self.xpTime[n] = time.time()
|
||||
except:
|
||||
print('error lol')
|
||||
#except:
|
||||
# print('error lol')
|
||||
|
||||
|
||||
def parseCommand(self, c,n,m):
|
||||
|
|
Loading…
Reference in New Issue