summaryrefslogtreecommitdiff
path: root/bigresult.py
blob: 67abf3301847a1571cc408b63faa3d072e00039d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import discord
from discord.ext import commands

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)