Add 'example.py'

main
Qemlokriu 2 years ago
parent 1a17c121ca
commit 43bf7c7c14

@ -0,0 +1,13 @@
import discord
from discord.ext import commands
class Greetings(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def hello(self, ctx):
await ctx.send(f'Hello {ctx.author}')
def setup(bot):
bot.add_cog(Greetings(bot))
Loading…
Cancel
Save