diff --git a/moderation/moderation.py b/moderation/moderation.py index 23a9d7e..cbbe9d1 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -163,8 +163,8 @@ class Moderation(commands.Cog): cursor.execute(insert_query, insert_values) database.commit() self.logger.info("MySQL Table (moderation_%s) created for %s (%s)", guild.id, guild.name, guild.id) + cursor.close() database.close() - return "Complete!" async def check_conf(self, config: list): """Checks if any required config options are not set."""