🚸 add default settings

This commit is contained in:
yanyongyu 2021-03-11 00:36:55 +08:00
parent 6a4ef989c9
commit 58bf50fc03
3 changed files with 25 additions and 6 deletions

19
.env Normal file
View File

@ -0,0 +1,19 @@
ENVIRONMENT=dev
HOST=0.0.0.0
PORT=8080
DEBUG=false
PLUGINS=[]
PLUGIN_DIRS=["src/plugins"]
# leaving space to load from system env
# nonebot-plugin-sentry
# See Also: https://sentry.io/
SENTRY_DSN=
# github
# See Also: https://github.com/settings/developers
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=

4
.gitignore vendored
View File

@ -1,4 +1,4 @@
.env*
.env.*
src/plugins/**/poetry.lock
# Created by https://www.toptal.com/developers/gitignore/api/python,visualstudiocode
@ -111,7 +111,7 @@ celerybeat.pid
*.sage.py
# Environments
.env
# .env
.venv
env/
venv/

View File

@ -4,7 +4,7 @@
@Author : yanyongyu
@Date : 2021-03-09 17:13:37
@LastEditors : yanyongyu
@LastEditTime : 2021-03-09 18:36:19
@LastEditTime : 2021-03-10 21:47:26
@Description : None
@GitHub : https://github.com/yanyongyu
"""
@ -35,8 +35,8 @@ class Github:
retry: Optional[int] = None,
verify: bool = True):
self._requester = Requester(token_or_client_id, client_secret, base_url,
timeout, user_agent, per_page, verify,
retry)
timeout, user_agent, per_page, retry,
verify)
@property
def oauth_scopes(self):