mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-01-08 22:25:39 +00:00
Don't force our event loop, use dpy's one
Also use stable dpy instead of master Closes #38
This commit is contained in:
parent
5861a76674
commit
67728ccbd1
|
@ -68,7 +68,6 @@ bot = commands.Bot(command_prefix=get_prefix,
|
|||
description=config.bot_description, pm_help=True)
|
||||
|
||||
bot.log = log
|
||||
bot.loop = asyncio.get_event_loop()
|
||||
bot.config = config
|
||||
bot.script_name = script_name
|
||||
bot.wanted_jsons = wanted_jsons
|
||||
|
@ -208,4 +207,4 @@ for wanted_json in wanted_jsons:
|
|||
with open(wanted_json, "w") as f:
|
||||
f.write("{}")
|
||||
|
||||
bot.run(config.token, bot=True, reconnect=True, loop=bot.loop)
|
||||
bot.run(config.token, bot=True, reconnect=True)
|
||||
|
|
|
@ -7,6 +7,7 @@ import math
|
|||
import parsedatetime
|
||||
from discord.ext.commands import Cog
|
||||
|
||||
|
||||
class Common(Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
git+https://github.com/Rapptz/discord.py
|
||||
|
||||
discord.py
|
||||
asyncio
|
||||
python-dateutil
|
||||
humanize
|
||||
|
|
Loading…
Reference in a new issue