#!/usr/bin/env python3 import logging import valconomy from valconomy import ValorantPlayerInfo, RiotPlayerInfo, EconomyDecision def main(): logging.basicConfig( format='%(asctime)s %(name)s %(levelname)s %(message)s', level=logging.INFO) h = valconomy.HIDValconomyHandler() try: h.menu(None, False) h.none() h.queue_start(RiotPlayerInfo.dummy( valorant=ValorantPlayerInfo())) h.menu(None, True) h.idle(None) h.queue_start(RiotPlayerInfo.dummy( valorant=ValorantPlayerInfo(queue_type='unrated', is_party_owner=True))) h.match_found(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(queue_type='premier-seasonmatch'))) h.pregame(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(map='/Game/Maps/Bonsai/Bonsai'))) h.match_found(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo())) h.pregame(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo())) h.game_generic(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(queue_type='ggteam'))) h.game_start(None) h.game_over(None, False) h.game_over(None, True) h.round_start( RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(score=3, enemy_score=7)), won=True, economy=EconomyDecision.SAVE) h.round_start( RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(score=10, enemy_score=2)), won=False, economy=EconomyDecision.BUY) h.round_start( RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(score=10, enemy_score=2)), won=None, economy=EconomyDecision.MATCH_TEAM) h.round_start( RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(score=2, enemy_score=0)), won=True, economy=EconomyDecision.BONUS) h.service() finally: h.close() if __name__ == '__main__': main()