From 01d75cf6001c4c1cadf0258a61d958bd6920fe86 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 9 Jan 2020 03:03:18 +0100 Subject: [PATCH] added responses --- cogs/fun/responses.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cogs/fun/responses.py diff --git a/cogs/fun/responses.py b/cogs/fun/responses.py new file mode 100644 index 0000000..a4c9ad6 --- /dev/null +++ b/cogs/fun/responses.py @@ -0,0 +1,21 @@ +import discord +from discord.ext import commands + +class Responses(commands.Cog): + + def __init__(self, client): + self.client = client + + @commands.Cog.listener() + async def on_message(self, message: discord.Message): + # @applesauce + if ("<@!568271450176356352>" in message.content) and ("<@!657709911337074698>" in message.content): + await message.channel.send(f"Stop pinging us {message.author.mention} <:pinged:451198700832817202>") + return + + if "<@!657709911337074698>" in message.content: + await message.channel.send(f"{message.author.mention} <:pinged:451198700832817202>") + return + +def setup(client): + client.add_cog(Responses(client)) \ No newline at end of file