fixed weird bug

This commit is contained in:
lickthecheese 2020-03-06 11:13:25 -05:00
parent 362462beb9
commit a867fb1218
2 changed files with 4 additions and 3 deletions

1
bot.py
View File

@ -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)

View File

@ -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):