Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
u

u

u

u

u

u
  • Loading branch information
DoroWolf committed Dec 8, 2024
1 parent c41d2a3 commit 0c62356
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
5 changes: 4 additions & 1 deletion core/builtins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ async def send_message(target: Union[FetchedSession, MessageSession, str],
if isinstance(msg, list):
msg = MessageChain(msg)
Logger.info(target.__dict__)
await target.send_direct_message(msg, disable_secret_check, enable_split_image)
await target.send_direct_message(message_chain=msg,
disable_secret_check=disable_secret_check,
enable_parse_message=enable_parse_message,
enable_split_image=enable_split_image)

@staticmethod
async def fetch_target(target: str):
Expand Down
5 changes: 0 additions & 5 deletions core/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ def get(cls,
:param cfg_type: 配置项类型。
:param secret: 是否为密钥配置项。(默认为False)
:param table_name: 配置项表名。
:param _global: 是否搜索所有表的配置项,仅内部使用。(默认为False)
:param _generate: 是否标记为生成配置文件,仅内部使用。(默认为False)
:return: 配置文件中对应配置项的值。
'''
Expand Down Expand Up @@ -219,7 +217,6 @@ def write(cls, q: str, value: Union[Any, None], cfg_type: Union[type, tuple, Non
:param cfg_type: 配置项类型。
:param secret: 是否为密钥配置项。(默认为False)
:param table_name: 配置项表名。
:param _generate: 是否标记为生成配置文件,仅内部使用。(默认为False)
'''
cls.watch()
q = q.lower()
Expand Down Expand Up @@ -407,8 +404,6 @@ def Config(q: str,
:param secret: 是否为密钥配置项。(默认为False)
:param table_name: 配置项表名。
:param get_url: 是否为URL配置项。(默认为False)
:param _global: 是否搜索所有表的配置项,仅内部使用。(默认为False)
:param _generate: 是否标记为生成配置文件,仅内部使用。(默认为False)
:return: 配置文件中对应配置项的值。
'''
Expand Down
4 changes: 0 additions & 4 deletions modules/wiki/utils/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

generate_screenshot_v2_blocklist = ['https://mzh.moegirl.org.cn', 'https://zh.moegirl.org.cn']

special_namespace_list = ['special', '特殊']

random_title_list = ['random', '随机页面', '隨機頁面']

redirect_list = {'https://zh.moegirl.org.cn/api.php': 'https://mzh.moegirl.org.cn/api.php', # 萌娘百科强制使用移动版 API
'https://minecraft.fandom.com/api.php': 'https://minecraft.wiki/api.php', # no more Fandom then
'https://minecraft.fandom.com/zh/api.php': 'https://zh.minecraft.wiki/api.php'
Expand Down

0 comments on commit 0c62356

Please sign in to comment.