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.1.5] (unknown [101.128.125.100]) by gnuweeb.org (Postfix) with ESMTPSA id C5EBD8060C; Sat, 3 Sep 2022 01:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1662166879; bh=aeEyvIeiIUgVzhDYmLeD64adLno/CeFxzsXYJQe0gVk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=g2Vm86LREcjCFEftqJc7O0Quji4odNd71nq8m3nZEqsSv5/2w3KVQ+xU+lL9sWHYn 26QxIODnTcplQn9B7dF+ZCPSYtPrWQbfp/JLT1muGslrYiRdd5IFArrV96TU4IZ0WE KbGdNWguKNYHNX6Iq03uKWSaWg8PVQv9n27fVsfXBYedHnw6ACs2kntBIZVyRC7Z7j QqkUMPjSkgZ7GxhC/FPxg2aX1CAmUkBdnqzudqYYt412/ibJ/M38b+sU1Yi2u0yPBy MqHg8nmM4C/pjSscPHVlzpQqNtb8B7aQpLfvhQv+O4uD+Ple3KK5bhn/EhoAvt4V7B 25mFlA04sCPpQ== Message-ID: <643c97fb-d517-4662-4ce0-6e31a97c9e07@gnuweeb.org> Date: Sat, 3 Sep 2022 08:01:13 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v2 0/3] New Discord bot and full refactor scripts Content-Language: en-US To: Ammar Faizi Cc: GNU/Weeb Mailing List , Alviro Iskandar Setiawan References: <20220827030236.1094-1-kiizuha@gnuweeb.org> <7a414bd1-68f1-86a4-e647-7ee071a4300d@gnuweeb.org> <4de7a42e-bdae-f3b3-2674-20d673d71a58@gnuweeb.org> From: Muhammad Rizki In-Reply-To: <4de7a42e-bdae-f3b3-2674-20d673d71a58@gnuweeb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: On 03/09/2022 07.45, Ammar Faizi wrote: > On 9/3/22 7:42 AM, Ammar Faizi wrote: >> On 8/27/22 11:00 PM, Muhammad Rizki wrote: >>> - Set the `config.py` for discord or telegram >> >> daemon/dscord/config.py file is: >> ``` >>    # SPDX-License-Identifier: GPL-2.0-only >>    # >>    # Copyright (C) 2022  Muhammad Rizki >>    # >> >>    # Paste the admin role ID below >>    # to filter only admin who can >>    # access add/delete lore commands. >>    ADMIN_ROLE_ID = 0 >> ``` >> >> Where should I put the bot credentials? > > s/config.py/config.py.example/ > The `ADMIN_ROLE_ID` is the Discord role ID for `Lore Admin` to manage add/delete atom/broadcast. You can copy it from the role management in Discord, paste the role ID to the ADMIN_ROLE_ID in daemon/dscord/config.py (the config name must config.py because it will importable with Python)