mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
[Core] Removed flusher, helpers now save on changes
After some considerations, while the flusher was an interesting experiment, it doesn't seem to be reliable enough. It's been removed in favor of the helpers autosaving on any change in a threadsafe way.
This commit is contained in:
@@ -27,7 +27,7 @@ class Owner:
|
||||
await ctx.send("Failed to load package. Check your console or "
|
||||
"logs for details.")
|
||||
else:
|
||||
ctx.bot.save_packages_status()
|
||||
await ctx.bot.save_packages_status()
|
||||
await ctx.send("Done.")
|
||||
|
||||
@commands.group()
|
||||
@@ -39,7 +39,7 @@ class Owner:
|
||||
|
||||
if cog_name in ctx.bot.extensions:
|
||||
ctx.bot.unload_extension(cog_name)
|
||||
ctx.bot.save_packages_status()
|
||||
await ctx.bot.save_packages_status()
|
||||
await ctx.send("Done.")
|
||||
else:
|
||||
await ctx.send("That extension is not loaded.")
|
||||
@@ -60,7 +60,7 @@ class Owner:
|
||||
await ctx.send("Failed to reload package. Check your console or "
|
||||
"logs for details.")
|
||||
else:
|
||||
ctx.bot.save_packages_status()
|
||||
await ctx.bot.save_packages_status()
|
||||
await ctx.send("Done.")
|
||||
|
||||
def refresh_modules(self, module):
|
||||
|
||||
Reference in New Issue
Block a user