2. 支持临时使用其他语言模型回复(如 /bing hello) #79 perf: 😊1. 优化代码结构,降低耦合度 2. 启动前检查依赖库安装情况 fix: 🤔修复bing模型死锁(正忙)的问题
13 lines
373 B
Python
13 lines
373 B
Python
from nakuru.entities.components import Plain
|
|
|
|
class QQ:
|
|
def run_bot(self, gocq):
|
|
self.client = gocq
|
|
self.client.run()
|
|
|
|
async def send_qq_msg(self, source, res):
|
|
print("[System-Info] 回复QQ消息中..."+res)
|
|
# 通过消息链处理
|
|
await self.client.sendGroupMessage(source.group_id, [
|
|
Plain(text=res)
|
|
]) |