diff --git a/.env.swp b/.env.swp deleted file mode 100644 index b1723d8..0000000 Binary files a/.env.swp and /dev/null differ diff --git a/.gitignore b/.gitignore index 5cfcc49..bae577a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ data/ *.zip bad_apple.mp3 */bad-apple/ +.*/ +*.swp # ARG — keep out of public repo to prevent spoilers arg/ diff --git a/commands/faq.py b/commands/faq.py new file mode 100644 index 0000000..7a99bf0 --- /dev/null +++ b/commands/faq.py @@ -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))