Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Moving Cards from main.py to specific bot profiles
  • Loading branch information
Leviaria authored Jun 20, 2024
1 parent e144d2b commit acbe128
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@

from clashroyalebuildabot.bot.example.custom_bot import CustomBot
from clashroyalebuildabot.constants import DEBUG_DIR
from clashroyalebuildabot.namespaces.cards import Cards
from clashroyalebuildabot.updater import Updater

start_time = datetime.now()


def update_terminal_title():
while True:
elapsed_time = datetime.now() - start_time
Expand All @@ -24,22 +22,10 @@ def update_terminal_title():
sys.stdout.flush()
time.sleep(1)


def main():
cards = [
Cards.MINIONS,
Cards.ARCHERS,
Cards.ARROWS,
Cards.GIANT,
Cards.MINIPEKKA,
Cards.FIREBALL,
Cards.KNIGHT,
Cards.MUSKETEER,
]
bot = CustomBot(cards, debug=False)
bot = CustomBot(debug=False)
bot.run()


if __name__ == "__main__":
Updater().check_for_update()
logger.add(os.path.join(DEBUG_DIR, "bot.log"), rotation="500 MB")
Expand Down

0 comments on commit acbe128

Please sign in to comment.