mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Change notification timeout
This commit is contained in:
parent
50f6f62895
commit
483668fe1f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue