Skip to content

Commit

Permalink
fix: restart error
Browse files Browse the repository at this point in the history
Signed-off-by: xtex <xtexchooser@duck.com>
  • Loading branch information
xtexChooser committed Dec 10, 2023
1 parent e37aeb7 commit d93689e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/utils/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ async def load_prompt(bot) -> None:
author_cache = os.path.abspath(PrivateAssets.path + '/cache_restart_author')
loader_cache = os.path.abspath(PrivateAssets.path + '/.cache_loader')
no_load_succ = os.path.abspath(PrivateAssets.path + '/xtex_no_load_succ')
author = None
if os.path.exists(author_cache):
open_author_cache = open(author_cache, 'r')
author = json.loads(open_author_cache.read())['ID']
Expand Down

0 comments on commit d93689e

Please sign in to comment.