2018-07-21 00:46:34 +08: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-07-04 16:21:01 +08:00
|
|
|
|
import os
|
2018-06-25 16:50:34 +08:00
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
2018-06-15 06:58:24 +08:00
|
|
|
|
API_ROOT = ''
|
|
|
|
|
SECRET = ''
|
2018-06-15 10:40:53 +08:00
|
|
|
|
ACCESS_TOKEN = ''
|
2018-06-15 06:58:24 +08:00
|
|
|
|
HOST = '127.0.0.1'
|
|
|
|
|
PORT = 8080
|
|
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
|
|
SUPERUSERS = set()
|
2018-07-01 17:51:01 +08:00
|
|
|
|
NICKNAME = ''
|
2018-06-15 06:58:24 +08:00
|
|
|
|
COMMAND_START = {'/', '!', '/', '!'}
|
|
|
|
|
COMMAND_SEP = {'/', '.'}
|
2018-06-25 16:50:34 +08:00
|
|
|
|
SESSION_EXPIRE_TIMEOUT = timedelta(minutes=5)
|
2018-07-21 23:52:14 +08:00
|
|
|
|
SESSION_RUNNING_EXPRESSION = '您有命令正在执行,请稍后再试'
|
2018-07-04 16:21:01 +08:00
|
|
|
|
|
|
|
|
|
DATA_FOLDER = os.path.join(os.getcwd(), 'data')
|