From 3ba01dda11c6ab2da0dd73d5dfec48ae53e740f7 Mon Sep 17 00:00:00 2001 From: Hubbe Date: Sat, 2 Nov 2024 13:01:32 +0200 Subject: [PATCH] Don't check for active giveaways The old API is no more, so we can't check for active giveaway. Simply disable it for now. --- zulip_bots/zulip_bots/pubbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/pubbot.py b/zulip_bots/zulip_bots/pubbot.py index 01a8951..e8418d4 100644 --- a/zulip_bots/zulip_bots/pubbot.py +++ b/zulip_bots/zulip_bots/pubbot.py @@ -99,7 +99,7 @@ def main(conf_file, message_log_file, name=socket.gethostname()): increase = None if total is None else msg["d"] - total log["increase"] = increase increase_str = "" if increase is None else " (+${:.2f})".format(msg["d"] - total) - giveaway = get_giveaway() + giveaway = None entries_str = "" if increase is not None and giveaway is not None: amount = giveaway["amount"]