Skip to content

Commit

Permalink
remove upgrader.json
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed May 19, 2024
1 parent b886d7b commit 67d8fd5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cogs/sysmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,14 +860,6 @@ async def upgrade(self, ctx, plugin='system', *, args=''):
current = json.load(file)
with open('update_check/update.json', 'r') as file:
new = json.load(file)
with open('upgrader.json', 'r') as file:
current_up = json.load(file)
if new['upgrader'] > current_up['release']:
embed.colour = 0xff0000
embed.title = ':warning: Upgrader outdated'
embed.description = f'Your Unifier Upgrader cannot install this upgrade. Please run `{self.bot.command_prefix}upgrade-upgrader`.'
await msg.edit(embed=embed)
return
release = new['release']
version = new['version']
update_available = new['release'] > current['release']
Expand Down

0 comments on commit 67d8fd5

Please sign in to comment.