Skip to content

Commit

Permalink
Make deck loading optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch committed Sep 9, 2024
1 parent 9ed1f3f commit 075232d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clashroyalebuildabot/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def __init__(self, actions, auto_start=True):
)
keyboard_thread.start()

self.emulator.load_deck(cards)
if config["load_deck"]:
self.emulator.load_deck(cards)

@staticmethod
def _log_and_wait(prefix, delay):
Expand Down
3 changes: 3 additions & 0 deletions clashroyalebuildabot/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ bot:
# "WARNING" for warning messages, "ERROR" for error messages, and "CRITICAL" for critical issues.
log_level: "DEBUG"

# Create a deck code when the game starts
load_deck: True

adb:
# The IP address of your device or emulator.
# Use 127.0.0.1 for a local emulator. If you're connecting to a physical device,
Expand Down

0 comments on commit 075232d

Please sign in to comment.