Beispiel #1
0
    print("logging in")
    bot.login(True)
    print("logged in")


    while bot.sock.is_connected:
        # TODO: need to do the below until the end of the betting
        # Need to wait for status 
        print("waiting for message")
        b = bot.receive()
        print(b)
        # Get power auction.
        # Recieve auction token
        if b == "auction":
            print("Got auction")
            play.decide_auction()
            # bot.auction_response()
            print("responding to auction")
        
        elif b == "auction_result":
            print("Got auction result")
        
        elif b == "bet":
            print("received bet")
            play.decide_bet()
            print("responding to bet")
    
            # TODO: If power add later
        elif b == "summary":
            print("received summary")
            bot.show_winner()