help_cache.py 1.4 KB

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