修复emoji_manager.py中的数据库持久化逻辑;更新Maizone插件的作者信息和项目链接。
This commit is contained in:
@@ -429,7 +429,7 @@ class EmojiManager:
|
|||||||
else:
|
else:
|
||||||
emoji_update.usage_count += 1
|
emoji_update.usage_count += 1
|
||||||
emoji_update.last_used_time = time.time() # Update last used time
|
emoji_update.last_used_time = time.time() # Update last used time
|
||||||
emoji_update.save() # Persist changes to DB
|
session.commit() # Persist changes to DB
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"记录表情使用失败: {str(e)}")
|
logger.error(f"记录表情使用失败: {str(e)}")
|
||||||
|
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ async def adapter_command_to_stream(
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 创建消息段
|
# 创建消息段
|
||||||
message_segment = Seg(type="adapter_command", data=adapter_command_data)
|
message_segment = Seg(type="adapter_command", data=adapter_command_data) # type: ignore
|
||||||
|
|
||||||
# 构建发送消息对象
|
# 构建发送消息对象
|
||||||
bot_message = MessageSending(
|
bot_message = MessageSending(
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"description": "让你的麦麦发QQ空间说说、评论、点赞,支持AI配图、定时发送和自动监控功能",
|
"description": "让你的麦麦发QQ空间说说、评论、点赞,支持AI配图、定时发送和自动监控功能",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "重构版",
|
"name": "MaiBot-Plus",
|
||||||
"url": "https://github.com/internetsb"
|
"url": "https://github.com/MaiBot-Plus"
|
||||||
},
|
},
|
||||||
"license": "AGPL-v3.0",
|
"license": "AGPL-v3.0",
|
||||||
|
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
"min_version": "0.8.0",
|
"min_version": "0.8.0",
|
||||||
"max_version": "0.10.0"
|
"max_version": "0.10.0"
|
||||||
},
|
},
|
||||||
"homepage_url": "https://github.com/internetsb/Maizone",
|
"homepage_url": "https://github.com/MaiBot-Plus/MaiMbot-Pro-Max",
|
||||||
"repository_url": "https://github.com/internetsb/Maizone",
|
"repository_url": "https://github.com/MaiBot-Plus/MaiMbot-Pro-Max",
|
||||||
"keywords": ["QQ空间", "说说", "动态", "评论", "点赞", "自动化", "AI配图"],
|
"keywords": ["QQ空间", "说说", "动态", "评论", "点赞", "自动化", "AI配图"],
|
||||||
"categories": ["社交", "自动化", "QQ空间"],
|
"categories": ["社交", "自动化", "QQ空间"],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user