mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
drop supported target
This commit is contained in:
parent
254e39f615
commit
2a053422ee
@ -8,8 +8,10 @@ from tinydb import Query, TinyDB
|
|||||||
|
|
||||||
from .plugin_config import plugin_config
|
from .plugin_config import plugin_config
|
||||||
from .types import User
|
from .types import User
|
||||||
from .utils import Singleton, supported_target_type
|
from .utils import Singleton
|
||||||
|
from .platform import platform_manager
|
||||||
|
|
||||||
|
supported_target_type = platform_manager.keys()
|
||||||
|
|
||||||
def get_config_path() -> str:
|
def get_config_path() -> str:
|
||||||
if plugin_config.hk_reporter_config_path:
|
if plugin_config.hk_reporter_config_path:
|
||||||
|
@ -20,11 +20,8 @@ class Singleton(type):
|
|||||||
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
|
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
|
||||||
return cls._instances[cls]
|
return cls._instances[cls]
|
||||||
|
|
||||||
# supported_target_type = ('weibo', 'bilibili', 'rss', 'arknights', 'wechat')
|
|
||||||
supported_target_type = ('weibo', 'bilibili', 'rss', 'arknights', 'monster-siren')
|
|
||||||
|
|
||||||
if not plugin_config.hk_reporter_use_local and not check_chromium():
|
if not plugin_config.hk_reporter_use_local and not check_chromium():
|
||||||
os.environ['PYPPETEER_DOWNLOAD_HOST'] = 'http://npm.taobao.org/mirrors'
|
|
||||||
download_chromium()
|
download_chromium()
|
||||||
|
|
||||||
class Render(metaclass=Singleton):
|
class Render(metaclass=Singleton):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user