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=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.15.80] (unknown [182.2.72.174]) by gnuweeb.org (Postfix) with ESMTPSA id 3F2DB80866; Tue, 20 Sep 2022 08:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1663663054; bh=U4ucArwjUTAzsqSNtEKj4MvdbuM8YLQp2seHd0aHYQY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qcObutFWEgpaJJdzJFbFh64mxu2fkLZEvKwjtPzvrnNCp6kpKTdIn5SZvbzuXMtO4 lPMZ3oePBHRYMJoB3XLhWK5mYnVxP0jgC+Qwl4nOMeCsli2gXTyPOhA7UlwOsh8Mx/ 4WwLRllj5E9v4JPOa0s/Mq8o/8sNDW5zYOT76S+2ZpXVTivHKhXufUIJ75AZ2uuL6m rEzOWJnvl2MhpGQFOzU8iQmVyh7SHZF4WyXBaVYl88iI/BTwu5l691q9SbRb3y19HY jl8ijvcdHbmoZ2UtONvmR7SuS2Mi2RGuKy4ZvlJgkblvBDbhWul+zHoSx3QauuS2Y2 T//3wBEnXTSbw== Message-ID: <936e5da1-46e3-8a97-cf0f-bfd2faab363c@gnuweeb.org> Date: Tue, 20 Sep 2022 15:37:28 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC PATCH v3 10/17] discord: Add error handler on events Content-Language: en-US To: Muhammad Rizki Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List References: <20220919072641.996-1-kiizuha@gnuweeb.org> <20220919072641.996-11-kiizuha@gnuweeb.org> From: Ammar Faizi In-Reply-To: <20220919072641.996-11-kiizuha@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 9/19/22 2:26 PM, Muhammad Rizki wrote: > Adding error handler to ignore `CommandNotFound` error while someone > sending a message that is not exists for the bot basic commands. > See image:https://i.ibb.co/qRcCz6Z/image.png Please don't use a screenshot for something like this, just dump the log in the commit message. See this patch for example: https://lore.kernel.org/lkml/20220224185836.44907-1-ammarfaizi2@gnuweeb.org/ -- Ammar Faizi