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.177]) by gnuweeb.org (Postfix) with ESMTPSA id CF28B804FD; Sat, 1 Oct 2022 13:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1664629521; bh=68s4MdJ2dB1mrSDDVSnNGqhE2pa+IWm53kvzyq1PI6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tuP8yBClNZCgnOzIGJt4Sg1dRMe2gthwarLBHilgKJhSs4ULNbH0OGHqq57szGsWz y+BxYrLCW2YMjqRCi5YtU4wlvrZ2L3moIIHospu+tyRDvBRgaD/zi2fCu3gLDbfgAP t3ImC0s2zfGCFZ5cJM61x/QxrNa6NgN5pQYwz7Io+8JpZozrB2ES3Iv+RKrNqNJSlL y3PbBPRNnd38E/LSJTKN2eypYE66GQ7flgfHdHRZDQ9XPmZrsYp5YmuPEC6iYoYPUY s1nVBKLAVN3JDF55ZYAnrxMIHjisqszwU7UoHmaQbd/hVADkDpSHw0zdVQsGk0WApt +2hRIzWhKLgzA== From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 26/26] discord: Change the on_ready message Date: Sat, 1 Oct 2022 20:03:54 +0700 Message-Id: <20221001130355.784-27-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20221001130355.784-1-kiizuha@gnuweeb.org> References: <20221001130355.784-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