Skip to content

Commit

Permalink
版本推进至1.0.1,解决nbg指令无法进行多人会话的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Apr 11, 2023
1 parent 6f19a49 commit 7d82f3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions newbingAIOlivOSPlugin/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"namespace" : "newbingAIOlivOSPlugin",
"info" : "使用 .nb 问题 格式 开始提问,使用 .bye 结束对话",
"priority" : 30000,
"version" : "1.0.0",
"svn" : 1,
"version" : "1.0.1",
"svn" : 2,
"compatible_svn" : 100,
"message_mode" : "olivos_string",
"support" : [
Expand Down
4 changes: 2 additions & 2 deletions newbingAIOlivOSPlugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ def unity_message(plugin_event:OlivOS.API.Event, Proc:OlivOS.pluginAPI.shallow):
ask_obj = replyCONTEXT_regWait(
plugin_event=plugin_event,
flagBlock='allowCommand',
hash=contextRegHash([group_id, plugin_event.data.user_id])
hash=contextRegHash(hash_list)
)
if ask_obj != None:
ask = ask_obj['res']
ask_id = ask_obj['msgid']
resAn = None
if ask != None:
globalLog(2, '等待AI回复:%s :\n%s' % (str(hash_list), ask))
globalLog(2, '等待AI回复:%s :%s' % (str(hash_list), ask))
try:
res = loop.run_until_complete(getAI(bot, ask))
except Exception as e:
Expand Down

0 comments on commit 7d82f3b

Please sign in to comment.