MCPcopy Create free account

hub / github.com/Womsxd/MihoyoBBSTools / functions

Functions188 in github.com/Womsxd/MihoyoBBSTools

↓ 20 callersFunctionget_push_title
获取推送标题 :param status_id: 状态ID :return:
push.py:25
↓ 11 callersMethod_convert_black_list
转换黑名单文本为列表
dacapo_main.py:60
↓ 9 callersFunctionget_new_session
(**kwargs)
request.py:4
↓ 9 callersFunctionwait
()
mihoyobbs.py:16
↓ 8 callersMethodpush
(self, status, push_message)
push.py:488
↓ 7 callersFunctionsave_config
(p_path=None, p_config=None)
config.py:149
↓ 6 callersMethodinit
(self)
gamecheckin.py:43
↓ 6 callersMethodrun_task
(self)
mihoyobbs.py:281
↓ 5 callersMethod__init__
(self)
gamecheckin.py:225
↓ 5 callersFunctionhoyo_checkin
国际服游戏签到 :param event_base_url: 基础Url :param act_id: 活动id :return: 签到结果
hoyo_checkin.py:11
↓ 4 callersMethod_validate_args
验证命令参数数量 Args: command (str): 命令名称 args (list): 参数列表 expected_count (int): 期望的参数数量
server.py:349
↓ 4 callersMethodget_mod
获取模式 Returns: int: 模式(1为单用户,2为多用户)
server.py:74
↓ 3 callersMethodload_config
(self)
push.py:50
↓ 3 callersFunctionql_push
(status_code, title, message)
ql_main.py:11
↓ 3 callersFunctionrunningtime
获取当前时间戳
server.py:367
↓ 3 callersMethodset_mod
设置模式 Args: mod (int): 模式(1为单用户,2为多用户) Returns: bool: 设置是否成功
server.py:38
↓ 2 callersMethod_convert_checkin_list
转换签到列表文本为整数列表
dacapo_main.py:64
↓ 2 callersMethod_convert_text_to_list
转换文本为字符串列表
dacapo_main.py:56
↓ 2 callersFunctionfind_config
搜索指定扩展名的配置文件 Args: ext (str): 文件扩展名,如 '.yaml' 或 '.yml' Returns: list: 符合条件的配置文件名列表
main_multi.py:12
↓ 2 callersMethodget_list
(self)
mihoyobbs.py:152
↓ 2 callersMethodget_pass_challenge
(self)
mihoyobbs.py:82
↓ 2 callersMethodget_tasks_list
(self, update=False)
mihoyobbs.py:106
↓ 2 callersMethodget_time_interval
获取时间间隔 Returns: int: 时间间隔(分钟)
server.py:64
↓ 2 callersFunctionmain
主执行函数
main.py:108
↓ 2 callersFunctionmain_multi
多用户模式主执行函数 依次执行所有配置文件的任务,并汇总结果 Args: autorun (bool): 是否自动运行,False 时会等待用户确认 Returns: tuple: (状态码, 推送消息)
main_multi.py:75
↓ 2 callersFunctionmd5
计算输入文本的 MD5 哈希值。 :param text: 输入的文本字符串。 :return: 输入文本的 MD5 哈希值,以十六进制字符串表示。
tools.py:10
↓ 2 callersMethodmsg_replace
(self, msg)
push.py:61
↓ 2 callersFunctionnext_run_time
()
docker.py:24
↓ 2 callersFunctionrequire_mid
判断是否需要mid :return: 是否需要mid
login.py:98
↓ 2 callersMethodset_headers
(self)
gamecheckin.py:47
↓ 2 callersMethodset_show_details
设置是否显示详细信息 Args: show (bool): 是否显示详细信息
server.py:54
↓ 2 callersFunctionsign
()
docker.py:32
↓ 2 callersMethodsign_account
(self)
os_cloudgames.py:23
↓ 2 callersFunctiontimestamp
获取当前时间戳。 :return: 当前时间戳。
tools.py:33
↓ 1 callersMethod__init__
(self, token)
cloudgames.py:79
↓ 1 callersMethod_convert_activities_list
转换活动列表文本为列表
dacapo_main.py:74
↓ 1 callersMethod_handle_add_command
处理add命令
server.py:276
↓ 1 callersMethod_handle_help_command
处理help命令
server.py:185
↓ 1 callersMethod_handle_mod_command
处理mod命令
server.py:246
↓ 1 callersMethod_handle_multi_command
处理multi命令
server.py:221
↓ 1 callersMethod_handle_reload_command
处理reload命令
server.py:194
↓ 1 callersMethod_handle_set_command
处理set命令
server.py:301
↓ 1 callersMethod_handle_show_command
处理show命令
server.py:260
↓ 1 callersMethod_handle_single_command
处理single命令
server.py:213
↓ 1 callersMethod_handle_stop_command
处理stop命令
server.py:189
↓ 1 callersMethod_handle_test_command
处理test命令
server.py:199
↓ 1 callersMethod_handle_time_command
处理time命令
server.py:229
↓ 1 callersMethod_load_dacapo_config
加载 DaCapo 配置文件
dacapo_main.py:47
↓ 1 callersMethod_parse_command
解析命令字符串 Args: command_str (str): 命令字符串 Returns: tuple: (command, args) 命令和参数列表
server.py:330
↓ 1 callersMethodcancel_like_post
(self, post_info)
mihoyobbs.py:240
↓ 1 callersFunctioncheck_github_actions
检查是否在GitHub Actions环境运行
main.py:28
↓ 1 callersMethodcheck_in
(self, account)
gamecheckin.py:96
↓ 1 callersFunctioncheckin_game
(game_name, game_module, game_print_name="")
gamecheckin.py:235
↓ 1 callersFunctioncommand_loop
命令循环函数 Args: config: 服务器配置对象
server.py:405
↓ 1 callersFunctionconfig_v11_update
(data: dict)
config.py:75
↓ 1 callersFunctionconfig_v12_update
(data: dict)
config.py:94
↓ 1 callersFunctionconfig_v13_update
(data: dict)
config.py:103
↓ 1 callersMethodconvert_to_native_config
将 DaCapo 配置转换为项目原生配置
dacapo_main.py:101
↓ 1 callersMethodcreate_push_config
创建推送配置文件
dacapo_main.py:255
↓ 1 callersMethodcreate_temp_config
创建临时配置文件
dacapo_main.py:417
↓ 1 callersFunctiondone_task
完成任务 :param task_id: 任务id
web_activity.py:35
↓ 1 callersFunctionget_account_list
获取账号列表 :param game_id: 游戏ID :param headers: 请求头 :param update: 是否已尝试更新Cookie :return: 账号列表
account.py:9
↓ 1 callersMethodget_account_list
(self)
gamecheckin.py:56
↓ 1 callersMethodget_checkin_rewards
(self)
gamecheckin.py:67
↓ 1 callersFunctionget_config_list
获取所有可用的配置文件列表 搜索 .yaml 和 .yml 文件,并根据环境变量判断是否使用青龙面板模式 Returns: list: 配置文件列表
main_multi.py:49
↓ 1 callersMethodget_config_path
(self)
push.py:41
↓ 1 callersFunctionget_cookie_token_by_stoken
()
login.py:69
↓ 1 callersMethodget_max_req_post_num
(self)
mihoyobbs.py:79
↓ 1 callersFunctionget_mid
()
login.py:42
↓ 1 callersFunctionget_new_session_use_proxy
(http_proxy: str)
request.py:30
↓ 1 callersMethodget_show_details
获取是否显示详细信息 Returns: bool: 是否显示详细信息
server.py:84
↓ 1 callersFunctionget_stoken_cookie
获取带stoken的cookie :return: 正确的stoken的cookie
login.py:109
↓ 1 callersFunctionget_task_data
获取任务数据
web_activity.py:25
↓ 1 callersFunctionget_uid
()
login.py:47
↓ 1 callersMethodhandle_command
处理用户输入的命令 Args: command_str (str): 用户输入的命令字符串 Returns: bool: 如果需要重新加载配置返回True,如
server.py:128
↓ 1 callersFunctionhandle_login
处理登录逻辑
main.py:44
↓ 1 callersFunctioninitialize_config
初始化配置
main.py:35
↓ 1 callersFunctionis_module_imported
(module_name)
request.py:26
↓ 1 callersMethodis_sign
(self, region: str, uid: str, update: bool = False)
gamecheckin.py:81
↓ 1 callersMethodlike_posts
(self, post_info, captcha_try: bool = False)
mihoyobbs.py:212
↓ 1 callersFunctionmain
()
docker.py:17
↓ 1 callersFunctionmulti
()
ql_main.py:40
↓ 1 callersMethodpost_task
(self)
mihoyobbs.py:261
↓ 1 callersFunctionpush
(status, push_message)
push.py:519
↓ 1 callersFunctionql_config
筛选青龙多用户配置文件(头部匹配) 青龙面板的配置文件通常以 'mhy_' 开头,此函数用于筛选这些文件 Args: config_list (list): 配置文件列表 Returns: list: 青
main_multi.py:30
↓ 1 callersFunctionrandom_text
生成指定长度的随机文本。 :param num: 随机文本的长度。 :return: 生成的随机文本。
tools.py:23
↓ 1 callersMethodread_posts
(self, post_info)
mihoyobbs.py:204
↓ 1 callersMethodrefresh_list
(self)
mihoyobbs.py:76
↓ 1 callersFunctionrun
主函数
dacapo_main.py:501
↓ 1 callersFunctionrun_cn_tasks
执行国服任务
main.py:76
↓ 1 callersFunctionrun_mihoyobbs
执行米游社签到任务
main.py:58
↓ 1 callersFunctionrun_os_tasks
执行国际服任务
main.py:87
↓ 1 callersMethodrun_task
执行任务
dacapo_main.py:431
↓ 1 callersFunctionrun_web_activity
执行网页活动任务
main.py:101
↓ 1 callersMethodset_time_interval
设置时间间隔 Args: interval (int): 时间间隔(分钟) Returns: bool: 设置是否成功
server.py:22
↓ 1 callersFunctionsetup_logging
()
dacapo_main.py:11
↓ 1 callersMethodshare_post
(self, post_info)
mihoyobbs.py:249
↓ 1 callersMethodsign_account
(self)
cloudgames.py:19
↓ 1 callersMethodsign_account
(self)
gamecheckin.py:129
↓ 1 callersMethodsigning
(self)
mihoyobbs.py:170
next →1–100 of 188, ranked by callers