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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user