diff --git a/Robocop.py b/Robocop.py index 371514e..c924d4d 100755 --- a/Robocop.py +++ b/Robocop.py @@ -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) diff --git a/cogs/common.py b/cogs/common.py index 4425338..8af1a0c 100644 --- a/cogs/common.py +++ b/cogs/common.py @@ -7,6 +7,7 @@ import math import parsedatetime from discord.ext.commands import Cog + class Common(Cog): def __init__(self, bot): self.bot = bot diff --git a/requirements.txt b/requirements.txt index 82310e2..60c81ef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ -git+https://github.com/Rapptz/discord.py - +discord.py asyncio python-dateutil humanize