Skip to content

Commit

Permalink
do not prompt setup again
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Sep 18, 2024
1 parent 13f1c16 commit 10cd57e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cogs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,15 @@ async def setup(self):

if skip:
ignore_error = True

with open('.install.json') as file:
install_data = json.load(file)

install_data['setup'] = True

with open('.install.json', 'w') as file:
json.dump(install_data, file)

return await setup_dialog.finish(skipped=True)

if not self.bot.setup_lock:
Expand Down

0 comments on commit 10cd57e

Please sign in to comment.