Adding support to slash commands

This commit is contained in:
Rafael Vargas
2022-09-22 16:20:05 -03:00
parent ef66bf8bcb
commit 3b198cf78a
18 changed files with 422 additions and 40 deletions

View File

@@ -8,13 +8,18 @@ from Config.Embeds import VEmbeds
class VulkanBot(Bot):
def __init__(self, *args, **kwargs):
def __init__(self, listingSlash: bool = False, *args, **kwargs):
super().__init__(*args, **kwargs)
self.__listingSlash = listingSlash
self.__configs = VConfigs()
self.__messages = Messages()
self.__embeds = VEmbeds()
self.remove_command("help")
@property
def listingSlash(self) -> bool:
return self.__listingSlash
def startBot(self) -> None:
"""Blocking function that will start the bot"""
if self.__configs.BOT_TOKEN == '':