1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2026-05-12 08:40:06 +02:00

Add commands to Command, logging and improve command check

This commit is contained in:
2026-05-09 09:06:00 +02:00
parent 58af21ca6d
commit af03a53e21
2 changed files with 35 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
import logging
from deltabot_cli import BotCli
from deltachat2 import events
@@ -6,6 +8,8 @@ from quadnite_bot.command_registry import dispatcher
def main():
cli = BotCli("quadnite-bot")
logging.basicConfig(level=logging.DEBUG)
cli.on(events.NewMessage)(dispatcher)
cli.start()