Add permission

This commit is contained in:
Richard Chien
2018-06-15 15:00:58 +08:00
parent 19c211b253
commit 998d5b327b
5 changed files with 77 additions and 8 deletions

View File

@ -1,4 +1,5 @@
import os
import sys
import importlib
import logging
import re
@ -9,6 +10,11 @@ from aiocqhttp import CQHttp
from aiocqhttp.message import Message
logger = logging.getLogger('none')
default_handler = logging.StreamHandler(sys.stdout)
default_handler.setFormatter(logging.Formatter(
'[%(asctime)s] %(levelname)s: %(message)s'
))
logger.addHandler(default_handler)
from .plugin import handle_message, handle_notice, handle_request
from .command import on_command