Skip to content
Permalink
4efb676226
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (13 sloc) 430 Bytes
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))