how_to_team.py 999 B

123456789101112131415161718192021222324252627282930
  1. import discord
  2. from discord.ext import commands
  3. from discord.commands import slash_command
  4. class howtoteam(commands.Cog):
  5. def __init__(self, bot: discord.Bot):
  6. self.bot = bot
  7. #Command initialsation
  8. @slash_command(name="how_to_team", description="Get Infos on how to join the Team on this Server")
  9. async def how_to_team(self, ctx: discord.ApplicationContext):
  10. server = ctx.guild
  11. embed = discord.Embed(
  12. title=f"__How to join the Team on {server.name}__",
  13. description="If you want to join the Serverteam open a ticket in #ticket.",
  14. color=discord.Color.yellow()
  15. )
  16. if server.icon:
  17. embed.set_thumbnail(url=server.icon.url)
  18. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  19. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  20. await ctx.respond(embed=embed)
  21. def setup(bot: discord.Bot):
  22. bot.add_cog(howtoteam(bot))