how_to_team.py 960 B

12345678910111213141516171819202122232425262728
  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. @slash_command(name="how_to_team", description="Get Infos on how to join the Team")
  8. async def how_to_team(self, ctx: discord.ApplicationContext):
  9. server = ctx.guild
  10. embed = discord.Embed(
  11. title=f"__How to join the Team on {server.name}__",
  12. description="If you want to join the Serverteam open a ticket in #ticket.",
  13. color=discord.Color.yellow()
  14. )
  15. if server.icon:
  16. embed.set_thumbnail(url=server.icon.url)
  17. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  18. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  19. await ctx.respond(embed=embed)
  20. def setup(bot: discord.Bot):
  21. bot.add_cog(howtoteam(bot))