help_cache.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import discord
  2. from discord.ext import commands
  3. from discord.commands import Option
  4. from discord.commands import slash_command
  5. class helpcache(commands.Cog):
  6. def __init__(self, bot: discord.Bot):
  7. self.bot = bot
  8. #Command initialization
  9. @slash_command(name="help_cache", description= "Get Infos")
  10. async def help_cache(
  11. self,
  12. ctx,
  13. ):
  14. server = ctx.guild
  15. embed = discord.Embed(
  16. title=f"__How to clear your game cache__",
  17. description=f"Follow the follwing steps to clear your game cache:",
  18. color=discord.Color.yellow()
  19. )
  20. embed.add_field(name="Close Game", value="Close FiveM completely", inline=False)
  21. embed.add_field(name="Press keys", value="Win + R", inline=False)
  22. embed.add_field(name="Go to the folder", value="\Local\FiveM\FiveM.app\data", inline=False)
  23. embed.add_field(name="Delete the folders", value="cache, server-cache, server-cache-priv", inline=False)
  24. embed.add_field(name="Restart Game", value="Restart the game and download the resources again.", inline=False)
  25. embed.set_thumbnail(url=server.icon)
  26. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  27. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  28. await ctx.respond(embed=embed)
  29. def setup(bot: discord.Bot):
  30. bot.add_cog(helpcache(bot))