how_to_start.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import discord
  2. from discord.ext import commands
  3. from discord.commands import Option
  4. from discord.commands import slash_command
  5. import os
  6. from dotenv import load_dotenv
  7. class howtostart(commands.Cog):
  8. def __init__(self, bot: discord.Bot):
  9. self.bot = bot
  10. #Command initialization
  11. @slash_command(name="how_to_start", description= "Get Infos")
  12. async def how_to_start(
  13. self,
  14. ctx,
  15. ):
  16. server = ctx.guild
  17. embed = discord.Embed(
  18. title=f"__How to start__",
  19. 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!**",
  20. color=discord.Color.yellow()
  21. )
  22. embed.set_thumbnail(url=server.icon)
  23. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  24. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  25. await ctx.respond(embed=embed)
  26. def setup(bot: discord.Bot):
  27. bot.add_cog(howtostart(bot))