added ping
This commit is contained in:
parent
f9a2e68c8b
commit
367816995d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
class ExampleCog(commands.Cog):
|
||||
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
# Events
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self):
|
||||
print('Bot is online.')
|
||||
|
||||
# Commands
|
||||
@commands.command()
|
||||
async def ping(self, ctx):
|
||||
await ctx.send('Pong!')
|
||||
|
||||
def setup(client):
|
||||
client.add_cog(ExampleCog(client))
|
||||
Loading…
Add table
Add a link
Reference in a new issue