mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
18 lines
424 B
Python
18 lines
424 B
Python
from lxmfy import Command
|
|
|
|
|
|
class BasicCommands:
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
|
|
@Command(name="hello", description="Says hello")
|
|
async def hello(self, ctx):
|
|
ctx.reply(f"Hello {ctx.sender}!")
|
|
|
|
@Command(name="about", description="About this bot")
|
|
async def about(self, ctx):
|
|
ctx.reply("I'm a bot created with LXMFy!")
|
|
|
|
|
|
def setup(bot):
|
|
bot.add_cog(BasicCommands(bot))
|