1fc2beff by Barry

Fixed a shitty bug that filled the HD of the host machine..

1 parent 040215f3
......@@ -22,10 +22,6 @@ muted_until = datetime.datetime.now()
client = discord.Client()
json_data=open(credentials).read()
creds = json.loads(json_data)
client.login(creds['username'], creds['password'])
def leaders(xs, top=20):
counts = defaultdict(int)
for x in xs:
......@@ -615,8 +611,14 @@ def on_ready():
print(client.user.id)
print('------')
while 1:
retries = 0
while retries < 1000:
try:
json_data=open(credentials).read()
creds = json.loads(json_data)
client.login(creds['username'], creds['password'])
client.run()
except:
print("Shit I crashed")
retries += 1
print("Shit I crashed: Retry %s" % (retries,))
......