From 67dcaa833e9909ab52bcb6815e22a8304ae40224 Mon Sep 17 00:00:00 2001 From: Lilac-Rose Date: Sun, 12 Apr 2026 09:11:17 +0200 Subject: [PATCH] feat: add /faq command and untrack .env.swp --- .env.swp | Bin 4096 -> 0 bytes .gitignore | 2 ++ commands/faq.py | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) delete mode 100644 .env.swp create mode 100644 commands/faq.py diff --git a/.env.swp b/.env.swp deleted file mode 100644 index b1723d8872fe94bb4e63756eee45e3721740f42c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmYc?2=nw+u+%eT00IF92C3Bc%u{(b3}P2;8H)1rOF+VeKw5TAk#0$9QEp~lVh$d~ z`WgATsrosYIf= We don't know yet — stay tuned!", + ), + ( + "How do I not ping someone when I reply to them?", + "When you click **Reply** on a message, look for the **@On** toggle on the right side of the chat box.\nClick it to switch it to **@Off** and your reply won't ping the user.", + ), + ( + "I can't see all the channels — why?", + "Not all channels are visible by default. You can:\n- Right-click the server icon → **Show All Channels**\n- Or open **Channels & Roles** at the top of the channel list to pick specific ones", + ), + ( + "How do I check my level?", + "Head to <#876777562599194644> and run `/xp rank`.", + ), + ( + "Is this server affiliated with Leef?", + "> No.", + ), + ( + "How do I post images / why can't I send embeds?", + "You need to reach **Level 8** first — keep chatting to earn XP!", + ), +] + + +class FAQ(commands.Cog): + def __init__(self, bot: commands.Bot): + self.bot = bot + + @app_commands.command(name="faq", description="View frequently asked questions") + async def faq(self, interaction: discord.Interaction): + embed = discord.Embed( + title="Frequently Asked Questions", + color=get_embed_color(interaction.user.id), + ) + for question, answer in FAQ_ITEMS: + embed.add_field(name=question, value=answer, inline=False) + + await interaction.response.send_message(embed=embed) + + +async def setup(bot: commands.Bot): + await bot.add_cog(FAQ(bot))