mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 19:37:34 +08:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
# coding: utf-8
|
|
# YYeTsBot - config.py
|
|
# 2019/8/15 18:42
|
|
|
|
__author__ = 'Benny <benny.think@gmail.com>'
|
|
|
|
import os
|
|
|
|
BASE_URL = "http://www.rrys2020.com"
|
|
LOGIN_URL = "http://www.rrys2020.com/user/login"
|
|
GET_USER = "http://www.rrys2020.com/user/login/getCurUserTopInfo"
|
|
YYETS_SEARCH_URL = "http://www.rrys2020.com/search?keyword={kw}&type=resource"
|
|
AJAX_LOGIN = "http://www.rrys2020.com/User/Login/ajaxLogin"
|
|
SHARE_URL = "http://www.rrys2020.com/resource/ushare"
|
|
SHARE_WEB = "http://got002.com/resource.html?code={code}"
|
|
# http://got002.com/api/v1/static/resource/detail?code=9YxN91
|
|
SHARE_API = "http://got002.com/api/v1/static/resource/detail?code={code}"
|
|
|
|
WORKERS = "https://yyets.yyetsdb.workers.dev/?id={id}"
|
|
|
|
TOKEN = os.environ.get("TOKEN") or "TOKEN"
|
|
USERNAME = os.environ.get("USERNAME") or "USERNAME"
|
|
PASSWORD = os.environ.get("PASSWORD") or "password"
|
|
PROXY = os.environ.get("PROXY")
|
|
MAINTAINER = os.environ.get("MAINTAINER")
|
|
REDIS = os.environ.get("REDIS") or "localhost"
|
|
REPORT = os.environ.get("REPORT") or False
|
|
|
|
FIX_RESOURCE = "https://www.zimuxia.cn/portfolio/{name}"
|
|
FIX_SEARCH = "https://www.zimuxia.cn/?s={kw}"
|
|
|
|
# This name must match class name, other wise this bot won't functional.
|
|
|
|
FANSUB_ORDER: str = os.environ.get("order") or 'ZimuxiaOnline,YYeTsOffline'
|