MCPcopy Index your code

hub / github.com/Cassius0924/WeChatter / functions

Functions430 in github.com/Cassius0924/WeChatter

↓ 1 callersFunction_parse_food_href_list_response
解析食物详情链接列表 :param response: 请求响应 :return: 食物详情链接列表
wechatter/commands/_commands/food_calories.py:128
↓ 1 callersFunction_parse_gasoline_price_response
解析汽油价格响应 :param response: 响应 :return: 汽油价格
wechatter/commands/_commands/gasoline_price.py:53
↓ 1 callersFunction_parse_github_trending_response
(response: requests.Response)
wechatter/commands/_commands/github_trending.py:68
↓ 1 callersFunction_parse_hourly_weather_response
(response: requests.Response)
wechatter/commands/_commands/weather.py:130
↓ 1 callersFunction_parse_pai_post_response
(response: requests.Response)
wechatter/commands/_commands/pai_post.py:68
↓ 1 callersFunction_parse_reverso_context_response
(response: requests.Response)
wechatter/commands/_commands/translate.py:149
↓ 1 callersFunction_parse_trivia_response
(response: requests.Response)
wechatter/commands/_commands/trivia.py:36
↓ 1 callersFunction_register_game_basic_command
()
wechatter/games/__init__.py:116
↓ 1 callersFunction_safety_check_second
安全检查定时任务的秒级规则
wechatter/config/parsers/task_cron_list_parser.py:154
↓ 1 callersFunction_save_qrcode
保存二维码到指定路径
wechatter/commands/_commands/qrcode.py:64
↓ 1 callersMethod_set_chatting_chat
设置正在进行中的对话记录
wechatter/commands/_commands/openai_chat_gpt.py:254
↓ 1 callersFunctionadd_group
判断群组表中是否有该群组,若没有,则添加该群组
wechatter/app/routers/wechat.py:100
↓ 1 callersFunctionadd_message
添加消息到消息表
wechatter/app/routers/wechat.py:152
↓ 1 callersFunctionadd_person
判断用户表中是否有该用户,若没有,则添加该用户
wechatter/app/routers/wechat.py:135
↓ 1 callersFunctionadd_todo_task
向待办事项列表中添加任务,并返回添加是否成功的状态
wechatter/commands/_commands/todo.py:78
↓ 1 callersMethodchat
持续对话 :param chat_info: 对话信息 :param message: 用户消息 :param message_obj: 消息对象 :return: GPT 回复
wechatter/commands/_commands/openai_chat_gpt.py:402
↓ 1 callersMethodcontinue_chat
继续对话,选择历史对话 :param person: 用户 :param model: 模型 :param chat_index: 对话记录索引(从1开始) :return: 对话信息
wechatter/commands/_commands/openai_chat_gpt.py:228
↓ 1 callersMethodcreate
创建游戏房间
wechatter/games/game.py:308
↓ 1 callersMethodcreate_game
创建游戏
wechatter/games/game.py:112
↓ 1 callersMethodextend_conversation
(self, conversation: List)
wechatter/models/gpt/gpt_chat_info.py:29
↓ 1 callersMethodfill_from_dict
从字典创建游戏实例
wechatter/games/game.py:301
↓ 1 callersMethodforwarding_to_discord
转发消息到 Discord :param message_obj: 消息对象
wechatter/message/message_forwarder.py:179
↓ 1 callersMethodforwarding_to_wechat
消息转发 :param message_obj: 消息对象
wechatter/message/message_forwarder.py:94
↓ 1 callersMethodfrom_api_msg
从API接口创建消息对象 :param type: 消息类型 :param content: 消息内容 :param source: 消息来源 :param is_mentioned: 是否@机器人 :
wechatter/models/wechat/message.py:60
↓ 1 callersMethodfrom_dict
(cls, data: Dict)
wechatter/games/game.py:62
↓ 1 callersMethodgenerate_raw_create_msg
获取创建游戏的消息
wechatter/games/game.py:256
↓ 1 callersFunctionget_bili_hot_str
()
wechatter/commands/_commands/bili_hot.py:57
↓ 1 callersMethodget_chat_list_str
获取用户的所有对话记录 :param person: 用户 :param model: 模型 :return: 对话记录
wechatter/commands/_commands/openai_chat_gpt.py:344
↓ 1 callersMethodget_conversation
(self)
wechatter/models/gpt/gpt_chat_info.py:23
↓ 1 callersFunctionget_current_date
获取当前日期 :return: 返回格式化后的日期字符串
wechatter/utils/time.py:54
↓ 1 callersFunctionget_current_datetime
获取当前时间 :return: 返回格式化后的时间字符串
wechatter/utils/time.py:46
↓ 1 callersFunctionget_current_hour
获取当前小时 :return: 返回当前小时
wechatter/utils/time.py:6
↓ 1 callersFunctionget_current_minute
获取当前分钟 :return: 返回当前分钟
wechatter/utils/time.py:14
↓ 1 callersFunctionget_current_time
获取当前时间 :return: 返回格式化后的时间字符串
wechatter/utils/time.py:70
↓ 1 callersFunctionget_current_week
获取当前日期 :return: 返回格式化后的日期字符串
wechatter/utils/time.py:62
↓ 1 callersFunctionget_current_ymd
获取当前年月日 :return: 格式化后的年月日字符串
wechatter/utils/time.py:94
↓ 1 callersFunctionget_current_ymdh
获取当前年月日时 :return: 返回格式化后的年月日时字符串
wechatter/utils/time.py:102
↓ 1 callersFunctionget_douyin_hot_str
()
wechatter/commands/_commands/douyin_hot.py:56
↓ 1 callersFunctionget_food_calories_str
(message: str)
wechatter/commands/_commands/food_calories.py:32
↓ 1 callersMethodget_game_states
获取游戏状态
wechatter/games/game.py:84
↓ 1 callersFunctionget_gasoline_price_str
获取城市的汽油价格 :param city_name: 城市名 :return: 汽油价格
wechatter/commands/_commands/gasoline_price.py:33
↓ 1 callersFunctionget_github_trending_str
()
wechatter/commands/_commands/github_trending.py:59
↓ 1 callersFunctionget_help_msg
()
wechatter/commands/_commands/help.py:26
↓ 1 callersFunctionget_pai_post_str
()
wechatter/commands/_commands/pai_post.py:59
↓ 1 callersFunctionget_qrcode_saved_path
获取二维码保存路径
wechatter/commands/_commands/qrcode.py:35
↓ 1 callersFunctionget_reverso_context_tran_str
(content: str)
wechatter/commands/_commands/translate.py:69
↓ 1 callersFunctionget_today_in_history_str
()
wechatter/commands/_commands/today_in_history.py:29
↓ 1 callersFunctionget_today_people_daliy_url
获取今日01版人民日报PDF的url
wechatter/commands/_commands/people_daily.py:75
↓ 1 callersFunctionget_weather_str
(city: str)
wechatter/commands/_commands/weather.py:99
↓ 1 callersFunctionget_weibo_hot_str
()
wechatter/commands/_commands/weibo_hot.py:56
↓ 1 callersFunctionget_zhihu_hot_str
()
wechatter/commands/_commands/zhihu_hot.py:56
↓ 1 callersMethodhandle_message
处理消息 :param message_obj: 消息对象
wechatter/message/message_handler.py:47
↓ 1 callersFunctionhandle_system_event
判断系统事件类型,并调用相应的函数
wechatter/app/routers/wechat.py:85
↓ 1 callersMethodindex
(self, element: T)
wechatter/utils/unique_list.py:45
↓ 1 callersMethodjoin_game
加入游戏
wechatter/games/game.py:169
↓ 1 callersFunctionload_config
(config_path="config.yaml")
wechatter/config/config.py:9
↓ 1 callersFunctionload_games
加载所有游戏
wechatter/games/__init__.py:17
↓ 1 callersFunctionmain
WeChatter 启动文件
wechatter/wechatter.py:19
↓ 1 callersMethodnext_player
下一个玩家
wechatter/games/game.py:291
↓ 1 callersMethodover
结束游戏
wechatter/games/game.py:336
↓ 1 callersFunctionparse_discord_message_forwarding_rule_list
解析消息转发规则列表 :param rule_list: 消息转发规则列表 :return: 转发规则元组,第一个元素为全局转发规则,第二个元素为特定转发规则
wechatter/config/parsers/discord_message_forwarding_rule_list_parser.py:4
↓ 1 callersFunctionparse_message_forwarding_rule_list
解析消息转发规则列表 :param rule_list: 消息转发规则列表 :return: 转发规则元组,第一个元素为全局转发规则,第二个元素为特定转发规则
wechatter/config/parsers/message_forwarding_rule_list_parser.py:4
↓ 1 callersFunctionparse_official_account_reminder_rule_list
:param rule_list: 公众号文章提醒规则列表 :return: 公众号文章提醒规则
wechatter/config/parsers/official_account_reminder_rule_list_parser.py:4
↓ 1 callersFunctionparse_task_cron_list
解析任务定时规则列表 :param task_cron_list: 任务定时规则列表 :return cron_tasks: 任务定时任务列表
wechatter/config/parsers/task_cron_list_parser.py:30
↓ 1 callersMethodplay
进行一回合游戏
wechatter/games/game.py:329
↓ 1 callersMethodplay_game
(self, player: Person, message: str, game_states: GameStates)
wechatter/games/game.py:226
↓ 1 callersFunctionpost_request_json
发送POST请求,并解析返回的JSON :param url: 请求的URL :param data: 请求体(默认为None) :param json: 请求体(默认为None) :param files: 文件(默认为None) :param h
wechatter/utils/http_request.py:108
↓ 1 callersFunctionprint_wechatter_art_text
()
wechatter/art_text.py:18
↓ 1 callersMethodremind_official_account_article
提醒公众号文章 :param message_obj: 消息对象
wechatter/message/message_forwarder.py:136
↓ 1 callersFunctionremove_todo_task
从待办事项列表中删除任务,并返回删除的任务
wechatter/commands/_commands/todo.py:85
↓ 1 callersFunctionreply_tickled
回复拍一拍
wechatter/sender/notifier.py:53
↓ 1 callersMethodreply_wechat_forwarded_message
回复转发消息 :param message_obj: 消息对象
wechatter/message/message_forwarder.py:122
↓ 1 callersFunctionsave_json
(file_path, data)
wechatter/utils/json_manager.py:7
↓ 1 callersMethodset_discord_forwarding_rule
设置 Discord 消息转发规则 :param discord_message_forwarding_rule_list: Discord 消息转发规则列表
wechatter/message/message_forwarder.py:82
↓ 1 callersMethodset_official_account_reminder_rule
设置公众号提醒规则 :param official_account_reminder_rule_list: 公众号提醒规则列表
wechatter/message/message_forwarder.py:71
↓ 1 callersMethodset_wechat_forwarding_rule
设置微信消息转发规则 :param message_forwarding_rule_list: 消息转发规则列表
wechatter/message/message_forwarder.py:61
↓ 1 callersMethodshutdown
停止定时任务
wechatter/scheduler/scheduler.py:29
↓ 1 callersMethodstart_game
(self, player: Person, game_states: GameStates)
wechatter/games/game.py:129
↓ 1 callersMethodstartup
启动定时任务
wechatter/scheduler/scheduler.py:14
↓ 1 callersFunctiontext_to_image
(data: str)
wechatter/utils/text_to_image.py:6
↓ 1 callersMethodto_turn
(self)
wechatter/models/gpt/gpt_chat_message.py:23
↓ 1 callersMethodupdate_name
更新机器人名称
wechatter/bot/bot_info.py:34
↓ 1 callersFunctionvalidate_config
验证配置,验证是否存在必要字段 :param config: 配置文件
wechatter/config/validate.py:25
Method__call__
(self, func)
wechatter/commands/handlers.py:33
Method__delitem__
(self, index)
wechatter/utils/unique_list.py:30
Method__getitem__
(self, index)
wechatter/utils/unique_list.py:23
Method__init__
(self, cron_task_list: List[CronTask] = None)
wechatter/scheduler/scheduler.py:10
Method__init__
(self, *args, **kwargs)
wechatter/utils/unique_list.py:65
Method__init__
初始化游戏 :param game_host_person: 游戏创建者 :param game_players: 参与游戏的玩家(包括创建者) :param game_host_group: 游戏创建者所在群 :pa
wechatter/games/game.py:22
Method__init__
( self, game_host_person, game_players, game_host_group=None, least_pl
wechatter/games/_games/tictactoe.py:28
Method__init__
注册命令 :param command: 命令 :param keys: 命令关键词列表 :param desc: 命令描述
wechatter/commands/handlers.py:21
Method__init__
:param commands: 命令处理函数字典 :param quoted_handlers: 可引用的命令消息处理函数字典
wechatter/message/message_handler.py:38
Method__init__
(self)
wechatter/message/message_forwarder.py:53
Method__iter__
(self)
wechatter/utils/unique_list.py:39
Method__len__
(self)
wechatter/utils/unique_list.py:33
Method__repr__
(self)
wechatter/utils/unique_list.py:42
Method__setitem__
(self, index, value: T)
wechatter/utils/unique_list.py:26
Method__str__
(self)
wechatter/utils/unique_list.py:36
Method__str__
(self)
wechatter/models/wechat/message.py:311
Function_get_qrcode_url
获取二维码的url
wechatter/commands/_commands/qrcode.py:82
← previousnext →101–200 of 430, ranked by callers