Don't force our event loop, use dpy's one

Also use stable dpy instead of master

Closes #38
This commit is contained in:
Ave Ozkal 2019-06-25 11:39:00 +03:00
parent 5861a76674
commit 67728ccbd1
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
3 changed files with 3 additions and 4 deletions

View file

@ -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)

View file

@ -7,6 +7,7 @@ import math
import parsedatetime
from discord.ext.commands import Cog
class Common(Cog):
def __init__(self, bot):
self.bot = bot

View file

@ -1,5 +1,4 @@
git+https://github.com/Rapptz/discord.py
discord.py
asyncio
python-dateutil
humanize