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.125.217]) by gnuweeb.org (Postfix) with ESMTPSA id E6E287E257; Mon, 3 Oct 2022 23:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1664841237; bh=68s4MdJ2dB1mrSDDVSnNGqhE2pa+IWm53kvzyq1PI6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QBEii0NC4kLUK5oOMFZTvfLg0ledyOL/dtnAa1snDfMCxuNgxW//bvQI+SMWrWI8I 1kh4qVAfyKzrEkqcm2dSfnnaLGziWpA22KKeSwLrRxTRtJ/zNy5kBgIb/NnGRE+NwD VOfn9GHQSJAv0NVo0D7x8n6C46/2f3f7tb4zmkMctsw7IZwFx2rUYGOOh/wMDxr48A t+czPiVbOs6DTeAiIL9EYjCC+oAEPS47GXnRVwRPkMnJXwwP812rZVzEO3rv1roFNv thmD+ZtBqklV2hlYwYgXvbUhFDv9shYD07xpCEcnFb3Rb6OPy4l27C63gRJymL4YCr /QNFjo9ma9b1w== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v2 28/28] discord: Change the on_ready message Date: Tue, 4 Oct 2022 06:52:29 +0700 Message-Id: <20221003235230.1824-29-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221003235230.1824-1-kiizuha@gnuweeb.org> References: <20221003235230.1824-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Add a tips message on the on_ready event, so the author of the bot is know what to do when the bot first starts. Signed-off-by: Muhammad Rizki --- daemon/dscord/gnuweeb/plugins/events/on_ready.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/dscord/gnuweeb/plugins/events/on_ready.py b/daemon/dscord/gnuweeb/plugins/events/on_ready.py index c93e8a0..4f25764 100644 --- a/daemon/dscord/gnuweeb/plugins/events/on_ready.py +++ b/daemon/dscord/gnuweeb/plugins/events/on_ready.py @@ -14,10 +14,13 @@ class OnReady(commands.Cog): @commands.Cog.listener() async def on_ready(self): self.bot.mailer.run() + prefix = self.bot.command_prefix[0] t = "[ GNU/Weeb Bot is connected ]\n\n" t += f"ID : {self.bot.user.id}\n" t += f"Name : {self.bot.user.display_name}\n" t += f"Tags : {self.bot.user}\n\n" - t += "Ready to get the latest of lore kernel emails." + t += f"Send `{prefix}sync` message to the Discord channel " + t += "where the bot is running.\n" + print(t) -- Muhammad Rizki