feat: add /faq command and untrack .env.swp

This commit is contained in:
Lilac-Rose
2026-04-12 09:11:17 +02:00
parent 9d8ac0af69
commit 67dcaa833e
3 changed files with 53 additions and 0 deletions

BIN
.env.swp

Binary file not shown.

2
.gitignore vendored
View File

@@ -11,6 +11,8 @@ data/
*.zip
bad_apple.mp3
*/bad-apple/
.*/
*.swp
# ARG — keep out of public repo to prevent spoilers
arg/

51
commands/faq.py Normal file
View File

@@ -0,0 +1,51 @@
import discord
from discord import app_commands
from discord.ext import commands
from embed.embed_color import get_embed_color
FAQ_ITEMS = [
(
"When is Chapter 2 coming out?",
"> 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))