MCPcopy Index your code

hub / github.com/Zhalslar/astrbot_plugin_emoji_like / functions

Functions36 in github.com/Zhalslar/astrbot_plugin_emoji_like

↓ 8 callersFunction_raw_get
安全读取 raw_message 中的字段,兼容 dict 和对象两种类型
main.py:18
↓ 5 callersMethod_emoji_like
( self, event: AiocqhttpMessageEvent, emoji_ids: list[int], message_id: int |
main.py:35
↓ 3 callersMethod_schema
(cls)
config.py:31
↓ 3 callersMethod_schema
(cls)
core/config.py:33
↓ 2 callersMethod__setattr__
(self, key: str, value: Any)
config.py:84
↓ 2 callersMethod__setattr__
(self, key: str, value: Any)
core/config.py:86
↓ 2 callersMethod_fields
(cls)
config.py:35
↓ 2 callersMethod_fields
(cls)
core/config.py:37
↓ 2 callersMethodget_emoji_ids
(self, emotion: str | None, need_count: int)
config.py:147
↓ 2 callersMethodjudge_emotion
使用 LLM 判断文本情感并返回情感标签。 对外行为约定: - 本方法 **不会抛出异常**,失败时返回 None - 若 event.extra 中已存在 emotion,则直接复用(避免重复调用 LLM) - 成
core/emotion.py:13
↓ 1 callersMethod__init__
(self, data: MutableMapping[str, Any])
config.py:47
↓ 1 callersMethod__init__
(self, data: MutableMapping[str, Any])
core/config.py:49
↓ 1 callersMethod_build_prompt
( self, text: str, labels: list[str] | None, )
core/emotion.py:67
↓ 1 callersMethod_follow_reaction_notice
(self, event: AiocqhttpMessageEvent)
main.py:56
↓ 1 callersMethod_is_optional
(tp: type)
config.py:42
↓ 1 callersMethod_is_optional
(tp: type)
core/config.py:44
↓ 1 callersMethod_parse_llm_response
(self, text: str)
core/emotion.py:90
↓ 1 callersMethod_recently_followed
检查同一消息同一表情是否在去重时间窗口内已被跟随
main.py:139
↓ 1 callersMethodasync_emoji_like_by_emotion
( self, event: AiocqhttpMessageEvent, text: str, image_urls: list[str] | None
main.py:123
↓ 1 callersMethodget_judge_provider
(self, umo: str | None = None)
core/config.py:165
↓ 1 callersMethodparse_mapping_list
["开心:1 2 3", "愤怒:4 5"] -> {"开心": [1,2,3], "愤怒": [4,5]}
config.py:134
↓ 1 callersMethodparse_mapping_list
["开心:1 2 3", "愤怒:4 5"] -> {"开心": [1,2,3], "愤怒": [4,5]}
core/config.py:140
Method__getattr__
(self, key: str)
config.py:61
Method__getattr__
(self, key: str)
core/config.py:63
Method__init__
(self, cfg: AstrBotConfig)
config.py:120
Method__init__
(self, context: Context, config: AstrBotConfig)
main.py:29
Method__init__
(self, cfg: AstrBotConfig, context: Context)
core/config.py:125
Method__init__
(self, config: PluginConfig)
core/emotion.py:10
Methodget_emoji_ids
(self, emotion: str | None, need_count: int)
core/config.py:153
Methodon_command
贴表情 <数量>
main.py:81
Methodon_group_emoji_reaction
跟随群友给某条消息贴表情反应
main.py:158
Methodon_message
群消息监听
main.py:103
Methodraw_data
底层配置 dict 的只读视图
config.py:90
Methodraw_data
底层配置 dict 的只读视图
core/config.py:92
Methodsave_config
保存配置到磁盘(仅允许在根节点调用)
config.py:96
Methodsave_config
保存配置到磁盘(仅允许在根节点调用)
core/config.py:98