给4K群加入 #图来 指令。用于要色图
This commit is contained in:
@@ -40,6 +40,7 @@ from message_report.write_db import write_to_db, generate_and_send_ranking
|
||||
from message_storage.message_to_db import archive_message, get_messages
|
||||
from message_summary.message_summary_4o import message_summary
|
||||
from sehuatang.shehuatang import pdf_file_path
|
||||
from xiuren.random_pic import get_xiuren_pic
|
||||
from xiuren.xiuren_dl import xiuren_dowload_pic
|
||||
|
||||
|
||||
@@ -170,6 +171,14 @@ class Robot(Job):
|
||||
elif q == '#总结':
|
||||
self.message_summary_robot((msg.roomid if msg.from_group() else msg.sender))
|
||||
return True
|
||||
# 暂时只支持4K群要图
|
||||
elif q == "#图来" and msg.roomid == "45317011307@chatroom":
|
||||
try:
|
||||
file_path = get_xiuren_pic()
|
||||
self.wcf.send_file(file_path, msg.roomid)
|
||||
except Exception as e:
|
||||
self.LOG.error(f"图来发图出错:{e}")
|
||||
return True
|
||||
# 如果正则匹配到时加群指令,则从库中提取第一个群ID
|
||||
elif match:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user