Skip to content
Permalink
Browse files
Added a file to test if a cog command is working or not
  • Loading branch information
stavilam committed Nov 3, 2018
1 parent 949ccd1 commit 4efb6762264879dbff4a4bd589f174a51f3db30f
Showing 1 changed file with 17 additions and 0 deletions.
17 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))

0 comments on commit 4efb676

Please sign in to comment.