From 04661d39221f0d9a50e5f5b3e639e60c281f6ea2 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sat, 29 Dec 2018 22:13:42 +0300 Subject: [PATCH] admin: allow cogs with _ in their name to be auto-reloaded --- cogs/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/admin.py b/cogs/admin.py index ef459c0..6a59b4d 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -113,7 +113,7 @@ class Admin: git_output = await self.bot.async_call_shell("git pull") await tmp.edit(content=f"Pull complete. Output: ```{git_output}```") if auto: - cogs_to_reload = re.findall(r'cogs/([a-z]*).py[ ]*\|', git_output) + cogs_to_reload = re.findall(r'cogs/([a-z_]*).py[ ]*\|', git_output) for cog in cogs_to_reload: try: self.bot.unload_extension("cogs." + cog)