Skip to content

Commit

Permalink
Merge pull request #133 from allthingslinux/123-server-guidequick-links
Browse files Browse the repository at this point in the history
Server Guide
  • Loading branch information
kzndotsh authored Apr 4, 2024
2 parents 5679ca6 + 93ab617 commit a25748b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tux/cogs/utility/guide.py
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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:
Expand All @@ -42,13 +42,14 @@ 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}",
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)


Expand Down

0 comments on commit a25748b

Please sign in to comment.