From 0ec8169d3ec6dc8a7e8dcdfe9353dcfb3dddcd4c Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 2 Nov 2024 18:03:25 -0400 Subject: feat: figured out how to get commands to work --- bigresult.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bigresult.py') diff --git a/bigresult.py b/bigresult.py index 6a11d1b..67abf33 100644 --- a/bigresult.py +++ b/bigresult.py @@ -1,16 +1,21 @@ import discord from discord.ext import commands -class BotClient(discord.ext.commands.Bot): +class BotClient(commands.Bot): async def on_ready(self): print("The big result bot is ready!") for guild in self.guilds: break; await self.send_msg("Hurlo") + async def on_message(self, message): + await self.process_commands(message) + if message.author == self.user: + return + if ("1984" in message.content): + await message.channel.send("kys") + async def send_msg(self, msg): channel = self.get_channel(427176475406630914) await channel.send(msg) - - -- cgit v1.2.3