Эх сурвалжийг харах

removed the greet funktion

BaumSplitter41 1 сар өмнө
parent
commit
dfcbd1f203
1 өөрчлөгдсөн 0 нэмэгдсэн , 21 устгасан
  1. 0 21
      VPD_BOT/cogs/greet.py

+ 0 - 21
VPD_BOT/cogs/greet.py

@@ -1,21 +0,0 @@
-import discord
-from discord.ext import commands
-from discord.commands import Option
-from discord.commands import slash_command
-import os
-from dotenv import load_dotenv
-
-class greet(commands.Cog):
-    def __init__(self, bot: discord.Bot):
-        self.bot = bot
-
-
-
-#Command initialization
-    @slash_command(description="Greet a User")
-    async def greet(self, ctx, user: str = Option(discord.User, "The user, you want to greet")):
-        await ctx.respond(f"Hello {user.mention}")
-
-
-def setup(bot: discord.Bot):
-    bot.add_cog(greet(bot))