Skip to content

Commit

Permalink
Do update before logging starts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch committed Jun 20, 2024
1 parent d095afa commit e144d2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def update_terminal_title():


def main():
updater = Updater()
updater.check_for_update()
cards = [
Cards.MINIONS,
Cards.ARCHERS,
Expand All @@ -43,6 +41,7 @@ def main():


if __name__ == "__main__":
Updater().check_for_update()
logger.add(os.path.join(DEBUG_DIR, "bot.log"), rotation="500 MB")
title_thread = threading.Thread(target=update_terminal_title, daemon=True)
title_thread.start()
Expand Down

0 comments on commit e144d2b

Please sign in to comment.