Log("@{} Hi, I would like to buy your {} listed for {} in {}\n".format(ign, item_name, cost, LEAGUE), "WHISPER", None, 1) if rule.alert: os.system("start C:\\Users\\Ramon\\workspace\\git\\rockwurst\\testsound.mp3") isFirst = False if len(hits) > 0: hitAvg = hitSum / hitCnt Log("took the first {} items with an avarage of {} chaos".format(hitCnt, hitAvg), "SCAN RESULT", "white", 0) DB.insert_scan(rule.link, hitAvg) def start(): date_str = datetime.datetime.strftime(datetime.datetime.now(), '%H:%M:%S am %d.%m.%Y') Log("Scan start", "INFO", "yellow", 0) rp = RuleParser() rules = rp.rules for rule in rules: handleRule(rule) Log("Scan finished --- I'll be back ! \n\n", "INFO", "yellow", 0) if __name__ == "__main__": Currency.updateCurrencys() Currency.printCurrencys() while True: start() time.sleep(180)