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

Change notification timeout

This commit is contained in:
Steffo 2019-04-24 16:57:20 +02:00
parent 50f6f62895
commit 483668fe1f

View file

@ -72,7 +72,7 @@ class PlayCommand(Command):
async def common(cls, call: Call): async def common(cls, call: Call):
guild, url = call.args.match(r"(?:\[(.+)])?\s*(.+)") guild, url = call.args.match(r"(?:\[(.+)])?\s*(.+)")
download_task = loop.create_task(call.net_request(PlayMessage(url, guild), "discord")) download_task = loop.create_task(call.net_request(PlayMessage(url, guild), "discord"))
notify_task = loop.create_task(notify_on_timeout(call, url, time=20, repeat=True)) notify_task = loop.create_task(notify_on_timeout(call, url, time=30, repeat=True))
try: try:
response: PlaySuccessful = await download_task response: PlaySuccessful = await download_task
except Exception as exc: except Exception as exc: