From 450b6750f20034c18fb225584c4159b929bd1d3f Mon Sep 17 00:00:00 2001 From: yaboytabby <86841460+yaboytabby@users.noreply.github.com> Date: Wed, 3 Apr 2024 06:47:58 -0500 Subject: [PATCH 1/2] clean up text in guide.py --- tux/cogs/utility/guide.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tux/cogs/utility/guide.py b/tux/cogs/utility/guide.py index dac152de..5ca619e4 100644 --- a/tux/cogs/utility/guide.py +++ b/tux/cogs/utility/guide.py @@ -29,7 +29,7 @@ async def guide(self, interaction: discord.Interaction) -> None: "This command can only be used in a server.", ephemeral=True ) return - embed = self.create_embed("Server Guide", "welcome to " + guild.name + "!") + embed = self.create_embed("Server Guide", "Welcome to " + guild.name + "!") if guild.icon: embed.set_thumbnail(url=guild.icon) if guild.banner: @@ -42,7 +42,7 @@ async def guide(self, interaction: discord.Interaction) -> None: /DEV/VOICE/ Listen to music or just talk. /VAR/LOG/: See logs related to moderation actions and github logs. - #""", + """, ) embed.set_footer( text=f"Requested by {interaction.user.display_name}", From 93ab6176b13c7f0cec443a7dc3108f771c1c65b6 Mon Sep 17 00:00:00 2001 From: yaboytabby <86841460+yaboytabby@users.noreply.github.com> Date: Wed, 3 Apr 2024 06:49:40 -0500 Subject: [PATCH 2/2] Add logging --- tux/cogs/utility/guide.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tux/cogs/utility/guide.py b/tux/cogs/utility/guide.py index 5ca619e4..abcf3b14 100644 --- a/tux/cogs/utility/guide.py +++ b/tux/cogs/utility/guide.py @@ -1,8 +1,8 @@ import discord from discord import app_commands from discord.ext import commands +from loguru import logger -# from loguru import logger from tux.utils.constants import Constants as CONST @@ -49,6 +49,7 @@ async def guide(self, interaction: discord.Interaction) -> None: icon_url=interaction.user.display_avatar.url, ) embed.timestamp = interaction.created_at + logger.info(f"{interaction.user} used the guide command in {interaction.channel}.") await interaction.response.send_message(embed=embed)