summaryrefslogtreecommitdiff
path: root/bigresult.py
diff options
context:
space:
mode:
Diffstat (limited to 'bigresult.py')
-rw-r--r--bigresult.py11
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)
-
-