mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-01-24 14:51:05 +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)
|
description=config.bot_description, pm_help=True)
|
||||||
|
|
||||||
bot.log = log
|
bot.log = log
|
||||||
bot.loop = asyncio.get_event_loop()
|
|
||||||
bot.config = config
|
bot.config = config
|
||||||
bot.script_name = script_name
|
bot.script_name = script_name
|
||||||
bot.wanted_jsons = wanted_jsons
|
bot.wanted_jsons = wanted_jsons
|
||||||
|
@ -208,4 +207,4 @@ for wanted_json in wanted_jsons:
|
||||||
with open(wanted_json, "w") as f:
|
with open(wanted_json, "w") as f:
|
||||||
f.write("{}")
|
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
|
import parsedatetime
|
||||||
from discord.ext.commands import Cog
|
from discord.ext.commands import Cog
|
||||||
|
|
||||||
|
|
||||||
class Common(Cog):
|
class Common(Cog):
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
git+https://github.com/Rapptz/discord.py
|
discord.py
|
||||||
|
|
||||||
asyncio
|
asyncio
|
||||||
python-dateutil
|
python-dateutil
|
||||||
humanize
|
humanize
|
||||||
|
|
Loading…
Reference in a new issue