From a83df7538dd474b5803db478462d2b330d41a048 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Sun, 3 Mar 2019 20:33:06 -0500 Subject: [PATCH] For sanity's sake added a timeout --- plugins/periodicals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/periodicals.py b/plugins/periodicals.py index 570997c..290310c 100644 --- a/plugins/periodicals.py +++ b/plugins/periodicals.py @@ -201,8 +201,8 @@ class TestPassive(hooks.Passive): on_expire) client.get_slack().add_hook(listener) - # Iterate editing the message every 10 seconds, forever - while True: + # Iterate editing the message every n seconds, for quite some time + for i in range(120): make_interactive_msg() await asyncio.sleep(post_interval)