mirror of
https://gitlab.com/ceda_ei/Quadnite-Bot
synced 2026-05-06 05:40:04 +02:00
Add core structure for DeltaChat port
This commit is contained in:
8
src/quadnite_bot/commands/echo.py
Normal file
8
src/quadnite_bot/commands/echo.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from deltachat2 import NewMsgEvent
|
||||
from quadnite_bot.command import Command, Context
|
||||
|
||||
class EchoCommand(Command):
|
||||
command = "echo"
|
||||
|
||||
def process_event(self, ctx: Context, event: NewMsgEvent) -> None:
|
||||
ctx.reply(event.msg.text)
|
||||
Reference in New Issue
Block a user