fix(backup): do not uninstall yourself

This commit is contained in:
SeaswimmerTheFsh 2024-01-31 15:56:28 -05:00
parent 49907e7803
commit 053b5b7472
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -152,6 +152,9 @@ class Backup(commands.Cog):
cog_modules = []
for cog in cogs:
# If you're forking this cog, make sure to change these strings!
if cog['name'] == "backup" and 'SeaswimmerTheFsh/SeaCogs' in url:
continue
try:
cog_module = await InstalledCog.convert(ctx, cog['name'])
except commands.BadArgument: