diff options
author | Josh <eeei3.joshua0307lol@gmail.com> | 2024-11-02 18:03:25 -0400 |
---|---|---|
committer | Josh <eeei3.joshua0307lol@gmail.com> | 2024-11-02 18:03:25 -0400 |
commit | 0ec8169d3ec6dc8a7e8dcdfe9353dcfb3dddcd4c (patch) | |
tree | 5b51049a8362b8c85b937d3bb1340abeb00ddd32 /bigresult.py | |
parent | 005af272481f43a9c075cc0278b949213fd1ee8e (diff) |
feat: figured out how to get commands to work
Diffstat (limited to 'bigresult.py')
-rw-r--r-- | bigresult.py | 11 |
1 files changed, 8 insertions, 3 deletions
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) - - |