nonebot2/none/default_config.py

34 lines
659 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-07-04 08:21:01 +00:00
import os
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-04 08:21:01 +00:00
DATA_FOLDER = os.path.join(os.getcwd(), 'data')