Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Cassius0924/WeChatter
/ functions
Functions
430 in github.com/Cassius0924/WeChatter
⨍
Functions
430
◇
Types & classes
78
↳
Endpoints
26
Function
_logging
日志装饰器
wechatter/sender/sender.py:41
Function
_retry
重试装饰器
wechatter/sender/sender.py:16
Function
_send_localfile_msg2
发送本地文件 :param to: SendTo 对象 :param file_path: 文件路径 :param is_group: 是否为群组
wechatter/sender/sender.py:363
Function
_send_msg2
发送消息 :param to: SendTo 对象 :param message: 消息内容 :param is_group: 是否为群组(默认为群组,True) :param type: 消息类型(text、fileUrl) :param quot
wechatter/sender/sender.py:196
Function
_send_msg_list2
发送多条消息,消息类型相同 :param to: SendTo 对象 :param message_list: 消息内容列表 :param is_group: 是否为群组 :param type: 消息类型(text、fileUrl)
wechatter/sender/sender.py:279
Function
_validate
验证接收者和消息内容是否为空
wechatter/sender/sender.py:113
Function
bili_hot_command_handler
(to: Union[SendTo, str], message: str = "")
wechatter/commands/_commands/bili_hot.py:20
Function
bili_hot_quoted_handler
(to: SendTo, message: str = "", q_response: str = "")
wechatter/commands/_commands/bili_hot.py:39
Function
check_and_create_file
检查文件是否存在,如果不存在则创建 :param paths: 文件路径(可变参数)
wechatter/utils/file_manager.py:85
Method
create
(self)
wechatter/games/_games/tictactoe.py:51
Function
create_file
创建文件 :param paths: 文件路径(可变参数)
wechatter/utils/file_manager.py:56
Function
create_folder
创建文件夹 :param paths: 文件夹路径(可变参数)
wechatter/utils/file_manager.py:38
Function
create_tables
()
wechatter/database/database.py:17
Function
decorator
(func)
wechatter/webhook_handlers/hanlders.py:12
Method
default
(self, obj)
wechatter/utils/unique_list.py:54
Function
delete_file
删除文件 :param paths: 文件路径(可变参数)
wechatter/utils/file_manager.py:146
Function
delete_folder
删除文件夹 :param paths: 文件夹路径(可变参数)
wechatter/utils/file_manager.py:165
Function
douyin_hot_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/douyin_hot.py:19
Function
douyin_hot_quoted_handler
(to: SendTo, message: str = "", q_response: str = "")
wechatter/commands/_commands/douyin_hot.py:38
Method
emit
(self, record)
wechatter/init_logger.py:24
Method
fill_from_dict
(self, data: Dict)
wechatter/games/_games/tictactoe.py:47
Function
food_calories_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/food_calories.py:20
Method
forwarded_source_name
获取转发消息的来源的名字 :return: 消息来源的名字和是否为群的元组(source_name, is_group)
wechatter/models/wechat/message.py:218
Method
from_model
(cls, gpt_chat_message_model: GptChatMessageModel)
wechatter/database/tables/gpt_chat_message.py:36
Method
from_model
(cls, message_model: MessageModel)
wechatter/database/tables/message.py:45
Method
from_model
(cls, model: QuotedResponseModel)
wechatter/database/tables/quoted_response.py:21
Method
from_model
(cls, person_model: PersonModel)
wechatter/database/tables/person.py:49
Method
from_model
(cls, gpt_chat_info_model: GptChatInfoModel)
wechatter/database/tables/gpt_chat_info.py:43
Method
from_model
(cls, game_states_model: GameStatesModel)
wechatter/database/tables/game_states.py:42
Method
g_id
(self)
wechatter/models/wechat/send_to.py:35
Method
g_name
(self)
wechatter/models/wechat/send_to.py:44
Function
game_command_handler
创建游戏
wechatter/games/__init__.py:37
Function
games_list_handler
查看所有游戏
wechatter/games/__init__.py:166
Function
gasoline_price_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/gasoline_price.py:19
Function
get_current_datetime_object
获取当前时间对象 :return: 返回当前时间对象
wechatter/utils/time.py:38
Function
get_current_day
获取当前日 :return: 返回格式化后的日字符串
wechatter/utils/time.py:86
Function
get_current_second
获取当前秒 :return: 返回当前秒
wechatter/utils/time.py:22
Function
get_current_timestamp
获取当前时间戳 :return: 返回当前时间戳
wechatter/utils/time.py:30
Function
get_current_year_month
获取当前年月 :return: 返回格式化后的年月字符串
wechatter/utils/time.py:78
Function
github_trending_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/github_trending.py:22
Function
github_trending_quoted_handler
(to: SendTo, message: str = "", q_response: str = "")
wechatter/commands/_commands/github_trending.py:41
Function
github_webhook_handler
注册 GitHub 事件 Handler 的装饰器
wechatter/webhook_handlers/hanlders.py:7
Function
gpt35_chats_command_handler
( to: SendTo, message: str = "", message_obj=None )
wechatter/commands/_commands/openai_chat_gpt.py:43
Function
gpt35_command_handler
(to: SendTo, message: str = "", message_obj=None)
wechatter/commands/_commands/openai_chat_gpt.py:34
Function
gpt35_continue_command_handler
( to: SendTo, message: str = "", message_obj=None )
wechatter/commands/_commands/openai_chat_gpt.py:65
Function
gpt35_record_command_handler
( to: SendTo, message: str = "", message_obj=None )
wechatter/commands/_commands/openai_chat_gpt.py:54
Function
gpt4_chats_command_handler
(to: SendTo, message: str = "", message_obj=None)
wechatter/commands/_commands/openai_chat_gpt.py:85
Function
gpt4_command_handler
(to: SendTo, message: str = "", message_obj=None)
wechatter/commands/_commands/openai_chat_gpt.py:76
Function
gpt4_continue_command_handler
( to: SendTo, message: str = "", message_obj=None )
wechatter/commands/_commands/openai_chat_gpt.py:105
Function
gpt4_record_command_handler
( to: SendTo, message: str = "", message_obj=None )
wechatter/commands/_commands/openai_chat_gpt.py:94
Function
gpt4_remove_command_handler
( to: SendTo, message: str = "", message_obj=None )
wechatter/commands/_commands/openai_chat_gpt.py:113
Function
handle_create
(data: dict)
wechatter/webhook_handlers/github/create_handler.py:9
Function
handle_delete
(data: dict)
wechatter/webhook_handlers/github/delete_handler.py:9
Function
handle_fork
(data: dict)
wechatter/webhook_handlers/github/fork_handler.py:9
Function
handle_issue
(data: dict)
wechatter/webhook_handlers/github/issue_handler.py:9
Function
handle_issue_comment
(data: dict)
wechatter/webhook_handlers/github/issue_comment_handler.py:9
Function
handle_ping
(data: dict)
wechatter/webhook_handlers/github/ping_handler.py:9
Function
handle_pr
(data: dict)
wechatter/webhook_handlers/github/pr_handler.py:9
Function
handle_pr_review
(data: dict)
wechatter/webhook_handlers/github/pr_review_handler.py:9
Function
handle_push
(data: dict)
wechatter/webhook_handlers/github/push_handler.py:9
Function
handle_release
(data: dict)
wechatter/webhook_handlers/github/release_handler.py:9
Function
handle_star
(data: dict)
wechatter/webhook_handlers/github/star_handler.py:9
Function
help_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/help.py:13
Function
is_file_exist
检查文件是否存在 :param paths: 文件路径(可变参数)
wechatter/utils/file_manager.py:75
Function
is_file_exist
检查文件是否存在 :param *args: 文件路径(可变参数) :return: 文件是否存在
wechatter/utils/path_manager.py:28
Function
is_folder_exist
检查文件夹是否存在 :param paths: 文件夹路径(可变参数)
wechatter/utils/file_manager.py:28
Method
is_group
是否是群消息 :return: 是否是群消息
wechatter/models/wechat/message.py:154
Method
is_official_account
是否是公众号消息 :return: 是否是公众号消息
wechatter/models/wechat/message.py:248
Method
is_quoted
是否引用机器人消息 :return: 是否引用机器人消息
wechatter/models/wechat/message.py:163
Method
is_sticky
是否为表情包消息 :return: 是否为表情包消息
wechatter/models/wechat/message.py:286
Method
is_tickled
是否为拍一拍消息 :return: 是否为拍一拍消息
wechatter/models/wechat/message.py:274
Method
join
(self, player, message, game_states)
wechatter/games/_games/tictactoe.py:62
Function
join_game_handler
加入游戏
wechatter/games/__init__.py:133
Function
list_files
列出路径下所有文件(不包括文件夹) :param paths: 路径(可变参数) :param suffix: 文件后缀
wechatter/utils/file_manager.py:105
Function
list_folder
列出路径下所有文件夹 :param paths: 路径(可变参数)
wechatter/utils/file_manager.py:128
Function
logging_wrapper
(*args, **kwargs)
wechatter/sender/sender.py:46
Method
mainfunc
设置命令的主函数,这个函数一般是返回命令的结果和命令的引用消息 :param func: 命令的主函数
wechatter/commands/handlers.py:101
Function
mass_send_msg_to_admins
群发消息给所有管理员 :param message: 消息内容 :param type: 消息类型(text、fileUrl) :param quoted_response: 被引用后的回复消息(默认值为 None)
wechatter/sender/sender.py:381
Function
mass_send_msg_to_github_webhook_receivers
群发消息给所有 GitHub Webhook 接收者 :param message: 消息内容 :param type: 消息类型(text、fileUrl) :param quoted_response: 被引用后的回复消息(默认值为 None)
wechatter/sender/sender.py:404
Function
notify_logged_in
通知登录成功
wechatter/sender/notifier.py:23
Function
notify_logged_out
通知已退出登录
wechatter/sender/notifier.py:38
Function
notify_received
通知收到命令请求
wechatter/sender/notifier.py:14
Method
object_hook
(self, dct)
wechatter/utils/unique_list.py:68
Method
over
(self, message, game_states)
wechatter/games/_games/tictactoe.py:128
Function
over_game_handler
结束游戏
wechatter/games/__init__.py:155
Method
p_alias
(self)
wechatter/models/wechat/send_to.py:30
Method
p_id
(self)
wechatter/models/wechat/send_to.py:20
Method
p_name
(self)
wechatter/models/wechat/send_to.py:25
Function
pai_post_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/pai_post.py:22
Function
pai_post_quoted_handler
(to: SendTo, message: str = "", q_response: str = "")
wechatter/commands/_commands/pai_post.py:41
Function
people_daily_command_handler
发送人民日报pdf
wechatter/commands/_commands/people_daily.py:17
Function
people_daily_url_command_handler
发送人民日报url
wechatter/commands/_commands/people_daily.py:29
Method
play
(self, player, message, game_states)
wechatter/games/_games/tictactoe.py:66
Function
play_game_handler
进行一回合游戏
wechatter/games/__init__.py:144
Method
pure_content
获取不带引用的消息内容,即用户真实发送的消息 :return: 不带引用的消息内容
wechatter/models/wechat/message.py:205
Function
qrcode_command_handler
(to: Union[str, SendTo], message: str = "")
wechatter/commands/_commands/qrcode.py:19
Method
quotable_id
获取引用消息的id :return: 引用消息的id
wechatter/models/wechat/message.py:190
Method
quoted_handler
设置命令的引用消息处理函数 :param func: 命令的引用消息处理函数
wechatter/commands/handlers.py:74
Function
recv_github_webhook
接收 GitHub Webhook
wechatter/app/routers/github.py:12
Function
recv_wechat_msg
用于接收 wxBotWebhook 转发过来的消息的接口
wechatter/app/routers/wechat.py:31
← previous
next →
201–300 of 430, ranked by callers