Esempio n. 1
0
    async def update_ranges(self):
        CONFIG = utils.load_bot_config()
        range_check = check_update_log(
            "equip_ranges", 3600 * CONFIG['equip_range_check_frequency_hours'])

        if range_check or not os.path.exists(utils.RANGES_FILE):
            print("Updating equip ranges...")
            await EquipScraper.scrape_ranges()
Esempio n. 2
0
    async def check_super(self):
        super_check = check_update_log("super", 24 * 60 * 60, exact_day=6)

        if super_check or not os.path.exists(utils.AUCTION_FILE):
            print("Checking super...")
            await SuperScraper.scrape()
            await SuperScraper.parse()
            await merge_auctions()
Esempio n. 3
0
    async def check_market(self):
        CONFIG = utils.load_bot_config()
        hvm_check = check_update_log(
            "hvmarket", 3600 * CONFIG['market_check_frequency_hours'])

        if hvm_check or not os.path.exists(utils.ITEM_FILE):
            print("Checking market...")
            await MarketScraper.scrape()
            await merge_items()