From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.126.198]) by gnuweeb.org (Postfix) with ESMTPSA id B4E1881559; Wed, 9 Nov 2022 02:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1667962221; bh=6vOuwdxgZkkLTD2NgBUcfgVx315U7IEgPggrfKyUtp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IvTjQXhkeqIdnCOr6/bxea5zXZ0o3vCNPmsX64jMu1v9+lGJWrTzGnykgUS4TuXWX 6JYSsKroyDqkSQdtCRvlNq8LT4N+oub41cHp0NwJCdAEQPhZSL4CN4n4Ohq7e9eVcT EmPpye6qY81figImL+Z4uJjw7TptnNiW+pU67cle8sQOiAaDJQsAF/3Jn33VBqDQP1 963eJjNH4Tg8wDt6WiEM6bzKVxf8QfOnTVXjVWF0nNYoEqZlN1Vofsw5OGFpwjwUCD c+6WDTawA9I3HYPnqhEC4wAzD89F34xEfU4DEgVm5TVqCBAZt5F781+sksC22e7XW2 QLPTGQJGujz4g== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v2 01/17] discord: Fix typo on _flood_exception() Date: Wed, 9 Nov 2022 09:49:46 +0700 Message-Id: <20221109025002.258-2-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221109025002.258-1-kiizuha@gnuweeb.org> References: <20221109025002.258-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Fix minor typo. This function is for the Discord bot, so fix the error message from "Telegram" to "Discord". v2: - Change commit description to make it clearer. Signed-off-by: Muhammad Rizki --- daemon/dscord/gnuweeb/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/dscord/gnuweeb/filters.py b/daemon/dscord/gnuweeb/filters.py index eb54a8a..b994904 100644 --- a/daemon/dscord/gnuweeb/filters.py +++ b/daemon/dscord/gnuweeb/filters.py @@ -49,5 +49,5 @@ def wait_on_limit(func): async def _flood_exceptions(e: "discord.errors.RateLimited"): wait = e.retry_after - print(f"[wait_on_limit]: Sleeping for {wait} seconds due to Telegram limit") + print(f"[wait_on_limit]: Sleeping for {wait} seconds due to Discord limit") await asyncio.sleep(wait) -- Muhammad Rizki