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.88.254] (unknown [125.160.106.238]) by gnuweeb.org (Postfix) with ESMTPSA id 8B1A280108; Thu, 28 Jul 2022 04:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1658981206; bh=Eowp5WkP6gGQrzCnWt1cQXF4TnvvSw2KiMC+v6VRSXA=; h=Date:Subject:To:References:Cc:From:In-Reply-To:From; b=ObpVIJ+pBGpnKCdX3dErS1rgwAF6rjxUI66DfaGA/MPyPbovINtNuXu+ozJQX0VT+ RaszO3m3ue6gE+xUQgbnnzqe6u8h2n12ylxRVPca387tUKpfEtoj3wCB5rwBKkM+90 8pgzaahQf1bFW2oWa5Uy+QyWvsiyLqKLOXyvhtqu0MhM8wPeLXs+LmMtxfiE7BCU0c yuvvrSY0s36iIEWWU1F3Lnkft61/xXCecAqrq2TaU5Mn6X0qW/CMVPpSrUnTpgL8Kk 8NtR2YVYaCsaCwA8EcSNYPFNVl+270xbkp51WeooyrrAp2+TP4oQh9rTpaPVrs4STG URG+mOX9CBVcA== Message-ID: Date: Thu, 28 Jul 2022 11:06:42 +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: [PATCH v1 05/18] Add utility functions for /add_atom Content-Language: en-US To: Muhammad Rizki References: <20220727024634.1995-1-kiizuha@gnuweeb.org> <20220727024634.1995-6-kiizuha@gnuweeb.org> <795ed6a2-2cde-8009-d8e4-dc8cb95d6b7d@gnuweeb.org> <3c50bf9b-d615-2b6a-38d0-94e68416579e@gnuweeb.org> Cc: GNU/Weeb Mailing List From: Ammar Faizi In-Reply-To: <3c50bf9b-d615-2b6a-38d0-94e68416579e@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: On 7/28/22 7:43 AM, Muhammad Rizki wrote: > On 27/07/2022 22.09, Ammar Faizi wrote: >> On 7/27/22 9:46 AM, Muhammad Rizki wrote: >>>   @DaemonClient.on_message( >>> -        filters.command("add_atom") & >>> -        filters.chat(["kiizuah", "nekoha", -1001673279485]) >>> +    filters.command("add_atom") & >>> +    filters.chat(["kiizuah", "nekoha", -1001673279485]) >>>   ) >> >> I think we should kill this and its friends. Move it to a config.py or >> something git-ignored. >> > Which code? only `filters.chat()`? Yes, the filter.chat(). > I was about to make an RFC about to make `add admin` feature and > create a custom filter like `filters.command() & custom_filter.admin`. OK, keep it like this until you do your RFC later. -- Ammar Faizi