nonebot2/none/default_config.py

33 lines
704 B
Python
Raw Normal View History

2018-07-20 16:46:34 +00:00
"""
Default configurations.
Any derived configurations must import everything from this module
at the very beginning of their code, and then set their own value
to override the default one.
For example:
>>> from none.default_config import *
>>> PORT = 9090
>>> DEBUG = False
>>> SUPERUSERS.add(123456)
>>> NICKNAME = '小明'
"""
2018-06-25 08:50:34 +00:00
from datetime import timedelta
2018-06-14 22:58:24 +00:00
API_ROOT = ''
SECRET = ''
2018-06-15 02:40:53 +00:00
ACCESS_TOKEN = ''
2018-06-14 22:58:24 +00:00
HOST = '127.0.0.1'
PORT = 8080
DEBUG = True
SUPERUSERS = set()
2018-07-01 09:51:01 +00:00
NICKNAME = ''
2018-06-14 22:58:24 +00:00
COMMAND_START = {'/', '!', '', ''}
COMMAND_SEP = {'/', '.'}
2018-06-25 08:50:34 +00:00
SESSION_EXPIRE_TIMEOUT = timedelta(minutes=5)
2018-07-21 15:52:14 +00:00
SESSION_RUNNING_EXPRESSION = '您有命令正在执行,请稍后再试'
2018-07-27 14:53:38 +00:00
SHORT_MESSAGE_MAX_LENGTH = 50