while True: top = hive.comments(limit=1)[0]["content"] try: if old != top and ("hey lyran" in top or "@ViolaVampire" in top): ntf = Notify() ntf.title = "Hey, Lyran..." ntf.message = top ntf.send() except NameError: continue old = top