Просмотр исходного кода

Renamed the /how_to_start and /how_to_team commands to /help_how_to_start and /help_how_to_team for better clarity.

baumsplitter41 4 месяцев назад
Родитель
Сommit
49d58a5972
2 измененных файлов с 8 добавлено и 8 удалено
  1. 4 4
      VPD_BOT/cogs/help_start.py
  2. 4 4
      VPD_BOT/cogs/help_team.py

+ 4 - 4
VPD_BOT/cogs/how_to_start.py → VPD_BOT/cogs/help_start.py

@@ -3,14 +3,14 @@ from discord.ext import commands
 from discord.commands import Option
 from discord.commands import slash_command
 
-class howtostart(commands.Cog):
+class helpstart(commands.Cog):
     def __init__(self, bot: discord.Bot):
         self.bot = bot
 
 
 #Command initialization
-    @slash_command(name="how_to_start", description= "Get Infos")
-    async def how_to_start(
+    @slash_command(name="help_how_to_start", description= "Get Infos")
+    async def help_how_to_start(
         self,
         ctx,
     ):
@@ -31,4 +31,4 @@ class howtostart(commands.Cog):
 
 
 def setup(bot: discord.Bot):
-    bot.add_cog(howtostart(bot))
+    bot.add_cog(helpstart(bot))

+ 4 - 4
VPD_BOT/cogs/how_to_team.py → VPD_BOT/cogs/help_team.py

@@ -2,12 +2,12 @@ import discord
 from discord.ext import commands
 from discord.commands import slash_command
 
-class howtoteam(commands.Cog):
+class helpteam(commands.Cog):
     def __init__(self, bot: discord.Bot):
         self.bot = bot
 
-    @slash_command(name="how_to_team", description="Get Infos on how to join the Team")
-    async def how_to_team(self, ctx: discord.ApplicationContext):
+    @slash_command(name="help_how_to_team", description="Get Infos on how to join the Team")
+    async def help_how_to_team(self, ctx: discord.ApplicationContext):
         server = ctx.guild
         
         embed = discord.Embed(
@@ -25,4 +25,4 @@ class howtoteam(commands.Cog):
         await ctx.respond(embed=embed)
 
 def setup(bot: discord.Bot):
-    bot.add_cog(howtoteam(bot))
+    bot.add_cog(helpteam(bot))