help_start.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. import discord
  2. from discord.ext import commands
  3. from discord.commands import Option
  4. from discord.commands import slash_command
  5. class helpstart(commands.Cog):
  6. def __init__(self, bot: discord.Bot):
  7. self.bot = bot
  8. #Command initialization
  9. @slash_command(name="help_how_to_start", description= "Get Infos how to start playing on the server")
  10. async def help_how_to_start(
  11. self,
  12. ctx,
  13. ):
  14. server = ctx.guild
  15. embed = discord.Embed(
  16. title=f"__How to start__",
  17. description=f"Hallo {ctx.author.mention}, um auf unserem Server spielen zu können, ließ dir zuerst das Regelwerk in in #regelwerk durch. Um einem Department beizutreten wähle in #how-to-start eine Einweisungsrolle aus. Melde dich anschließend für eine Einweisung an. **Wichtig: gehe erst krz vor der Einweisung auf den Server!**",
  18. color=discord.Color.yellow()
  19. )
  20. embed.set_thumbnail(url=server.icon)
  21. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  22. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  23. await ctx.respond(embed=embed)
  24. def setup(bot: discord.Bot):
  25. bot.add_cog(helpstart(bot))