From 43bf7c7c14e6c64408ad2416cd416e8f89288348 Mon Sep 17 00:00:00 2001 From: Qemlokriu Date: Sun, 5 Mar 2023 14:25:24 +0100 Subject: [PATCH] Add 'example.py' --- example.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 example.py diff --git a/example.py b/example.py new file mode 100644 index 0000000..e82009a --- /dev/null +++ b/example.py @@ -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)) \ No newline at end of file