1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Increased timeout

This commit is contained in:
Steffo 2017-05-06 15:52:38 +02:00
parent 81258d4127
commit 54ae8ff512

View file

@ -283,14 +283,14 @@ Sintassi: `{symbol}synclol <nome evocatore>`"""
lolaccount.parent_id = thing.author.id
session.add(lolaccount)
# Update the newly added user
updates = lolaccount.update_data()
lolaccount.update_data()
# Send some info to Discord
await d.client.send_message(thing.channel, "Connessione riuscita!", embed=lolaccount.generate_discord_embed())
# Commit the changes to the database
session.commit()
async def job_updatelol(singletimeout=1, alltimeout=900):
async def job_updatelol(singletimeout=1, alltimeout=1800):
await d.client.wait_until_ready()
while True:
# Open a new database session