B站订阅在群里中任意群管理员可以统一管理

This commit is contained in:
HibiKier
2022-09-03 17:30:03 +08:00
parent 1d141c9313
commit 1138a115ce
6 changed files with 31 additions and 9 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class WordBank(db.Model):
text += seg.data["text"]
elif seg.type == "face":
text += f"[face:placeholder_{index}]"
_list.append(seg.data.id)
_list.append(seg.data['id'])
elif seg.type == "at":
text += f"[at:placeholder_{index}]"
_list.append(seg.data["qq"])
-2
View File
@@ -130,8 +130,6 @@ async def _(
problem = temp
break
problem = unescape(problem)
# index = len((word_scope or "") + "添加词条" + (word_type or "") + problem) + 1
# event.message[0] = event.message[0].data["text"][index + 1 :].strip()
event.message[0] = event.message[0].data["text"].split('答', maxsplit=1)[-1].strip()
state["word_scope"] = word_scope
state["word_type"] = word_type