Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed Nov 11, 2020
1 parent 5d62d27 commit 2d56745
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
continue-on-error: true
- name: Black and flake8
run: |
black . --diff
black . --diff --check
1 change: 0 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ async def process_dm_modmail(self, message: discord.Message) -> None:
await self.add_reaction(message, sent_emoji)
self.bot.dispatch("thread_reply", thread, False, message, False, False)


async def get_contexts(self, message, *, cls=commands.Context):
"""
Returns all invocation contexts from the message.
Expand Down
4 changes: 0 additions & 4 deletions cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,10 +1011,6 @@ async def contact(
await asyncio.sleep(5)
await ctx.message.delete()

@commands.Cog.listener()
async def on_plugin_ready(self):
print('hi')

@commands.group(invoke_without_command=True)
@checks.has_permissions(PermissionLevel.MODERATOR)
@trigger_typing
Expand Down
2 changes: 1 addition & 1 deletion cogs/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async def initial_load_plugins(self):

logger.debug("Finished loading all plugins.")

self.bot.dispatch('plugins_ready')
self.bot.dispatch("plugins_ready")

self._ready_event.set()
await self.bot.config.update()
Expand Down
1 change: 0 additions & 1 deletion core/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ async def _close(
await asyncio.gather(*tasks)
self.bot.dispatch("thread_close", self, closer, silent, delete_channel, message, scheduled)


async def cancel_closure(self, auto_close: bool = False, all: bool = False) -> None:
if self.close_task is not None and (not auto_close or all):
self.close_task.cancel()
Expand Down

0 comments on commit 2d56745

Please sign in to comment.