diff --git a/src/main.py b/src/main.py index fcb545a..455f2e4 100644 --- a/src/main.py +++ b/src/main.py @@ -6,7 +6,7 @@ from utils.commands import CommandesDB class Bot(commands.Bot): def __init__(self): self.keys = load(["ACCESS_TOKEN", "PREFIX", "CHANNEL"]) - super().__init__(token=self.keys["ACCESS_TOKEN"], prefix=self.keys["PREFIX"], initial_channels=self.keys["CHANNEL"]) + super().__init__(token = self.keys["ACCESS_TOKEN"], prefix = self.keys["PREFIX"], initial_channels = self.keys["CHANNEL"]) async def event_ready(self): CommandesDB().creationTable() @@ -16,9 +16,8 @@ class Bot(commands.Bot): if message.echo: # Messages with echo set to True are messages sent by the bot return - # Print the contents of our message to console - if not message.content.startswith(self.keys["PREFIX"]): - print(f"{message.author.name}: {message.content}") + # if not message.content.startswith(self.keys["PREFIX"]): + # print(f"{message.author.name}: {message.content}") await self.handle_commands(message) # Let the bot know we want to handle and invoke our commands