added responses

This commit is contained in:
Robert 2020-01-09 03:03:18 +01:00
parent 0ee1c17a07
commit 01d75cf600

21
cogs/fun/responses.py Normal file
View file

@ -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))