13 lines
282 B
Python
13 lines
282 B
Python
import discord
|
|
from discord.ext import commands
|
|
|
|
class Hello(commands.Cog):
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
|
|
@commands.command()
|
|
async def hello(self, ctx):
|
|
await ctx.send("Hello, world!")
|
|
|
|
async def setup(bot):
|
|
await bot.add_cog(Hello(bot))
|