Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Zhalslar/astrbot_plugin_emoji_like
/ functions
Functions
36 in github.com/Zhalslar/astrbot_plugin_emoji_like
⨍
Functions
36
◇
Types & classes
6
↓ 8 callers
Function
_raw_get
安全读取 raw_message 中的字段,兼容 dict 和对象两种类型
main.py:18
↓ 5 callers
Method
_emoji_like
( self, event: AiocqhttpMessageEvent, emoji_ids: list[int], message_id: int |
main.py:35
↓ 3 callers
Method
_schema
(cls)
config.py:31
↓ 3 callers
Method
_schema
(cls)
core/config.py:33
↓ 2 callers
Method
__setattr__
(self, key: str, value: Any)
config.py:84
↓ 2 callers
Method
__setattr__
(self, key: str, value: Any)
core/config.py:86
↓ 2 callers
Method
_fields
(cls)
config.py:35
↓ 2 callers
Method
_fields
(cls)
core/config.py:37
↓ 2 callers
Method
get_emoji_ids
(self, emotion: str | None, need_count: int)
config.py:147
↓ 2 callers
Method
judge_emotion
使用 LLM 判断文本情感并返回情感标签。 对外行为约定: - 本方法 **不会抛出异常**,失败时返回 None - 若 event.extra 中已存在 emotion,则直接复用(避免重复调用 LLM) - 成
core/emotion.py:13
↓ 1 callers
Method
__init__
(self, data: MutableMapping[str, Any])
config.py:47
↓ 1 callers
Method
__init__
(self, data: MutableMapping[str, Any])
core/config.py:49
↓ 1 callers
Method
_build_prompt
( self, text: str, labels: list[str] | None, )
core/emotion.py:67
↓ 1 callers
Method
_follow_reaction_notice
(self, event: AiocqhttpMessageEvent)
main.py:56
↓ 1 callers
Method
_is_optional
(tp: type)
config.py:42
↓ 1 callers
Method
_is_optional
(tp: type)
core/config.py:44
↓ 1 callers
Method
_parse_llm_response
(self, text: str)
core/emotion.py:90
↓ 1 callers
Method
_recently_followed
检查同一消息同一表情是否在去重时间窗口内已被跟随
main.py:139
↓ 1 callers
Method
async_emoji_like_by_emotion
( self, event: AiocqhttpMessageEvent, text: str, image_urls: list[str] | None
main.py:123
↓ 1 callers
Method
get_judge_provider
(self, umo: str | None = None)
core/config.py:165
↓ 1 callers
Method
parse_mapping_list
["开心:1 2 3", "愤怒:4 5"] -> {"开心": [1,2,3], "愤怒": [4,5]}
config.py:134
↓ 1 callers
Method
parse_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
Method
get_emoji_ids
(self, emotion: str | None, need_count: int)
core/config.py:153
Method
on_command
贴表情 <数量>
main.py:81
Method
on_group_emoji_reaction
跟随群友给某条消息贴表情反应
main.py:158
Method
on_message
群消息监听
main.py:103
Method
raw_data
底层配置 dict 的只读视图
config.py:90
Method
raw_data
底层配置 dict 的只读视图
core/config.py:92
Method
save_config
保存配置到磁盘(仅允许在根节点调用)
config.py:96
Method
save_config
保存配置到磁盘(仅允许在根节点调用)
core/config.py:98