you dont have the option to switch to standard mode (the button betwen casual and ranked) if you have 0 wild cards in your deck.
best thing is either check if you have wild card (or detect if there is a button) or simply do the to 'switch to standard' once, so if you do have that option to switch then it does s in gameo, if not start the bot as you are already on standard mode (you wont have any wild cards in your deck).
EDIT: deck = collection.