From 4efb6762264879dbff4a4bd589f174a51f3db30f Mon Sep 17 00:00:00 2001 From: stavilam Date: Sat, 3 Nov 2018 20:12:16 +0000 Subject: [PATCH] Added a file to test if a cog command is working or not --- test.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..bec9374 --- /dev/null +++ b/test.py @@ -0,0 +1,17 @@ +import discord +from botClient import client +from discord.ext import commands + +class TestCog: + def __init__(self, client): + self.client = client + + async def on_message_delete(self, message): + await message.channel.send(f"{message.author}'s message has been deleted.") + + @commands.command() + async def ping(self, ctx): + await ctx.send('Pong!') + +def setup(client): + client.add_cog(TestCog(client)) \ No newline at end of file