fix(backup): do not uninstall yourself
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 16s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 12s

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

View file

@ -152,6 +152,9 @@ class Backup(commands.Cog):
cog_modules = [] cog_modules = []
for cog in cogs: 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: try:
cog_module = await InstalledCog.convert(ctx, cog['name']) cog_module = await InstalledCog.convert(ctx, cog['name'])
except commands.BadArgument: except commands.BadArgument: