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 autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [101.128.125.209]) by gnuweeb.org (Postfix) with ESMTPSA id 222718194D; Mon, 19 Dec 2022 23:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1671494265; bh=6vOuwdxgZkkLTD2NgBUcfgVx315U7IEgPggrfKyUtp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LzKbzhGEe1K2Reh4wQ/PAM6rG/DnhyMTeSU8D6xUgLWZ3SYn+qH76z2sbyCYDU/Np 2XiVj0Kk7hfM8RGPP0qvswzn5suongf6nA4mRQSAB0+lql+U19WGjEPxmGN7/3C1W3 M4JsyQsB7YznPeTho7hzNqV0fmY40/IdbLDwhbHqwFs6FjHJPFqW1HDQsJN5KKEMdw XX7Wwv/p0hNy383TimFQGIkCnxPAR+/K+44nmlXrvBv/L5tmx1A/8Q21HIYysUMNRZ J+nghBInSsRRY5iPJnAnAGonMLILj6ghQsqAeUTC0IP+PZWPkBGolTuvLsh9YC2XY7 QZoNlOiGTlxYw== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v3 01/17] discord: Fix typo on _flood_exception() Date: Tue, 20 Dec 2022 06:57:05 +0700 Message-Id: <20221219235721.126-2-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221219235721.126-1-kiizuha@gnuweeb.org> References: <20221219235721.126-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