🐛 修复修改头衔bug

This commit is contained in:
yeyang
2023-03-22 18:39:41 +08:00
parent c3c5b30abb
commit 554f215e17

View File

@@ -287,7 +287,7 @@ export class GroupAdmin extends plugin {
if (!common.Authentication(e, 'master', 'owner')) return
let qq = e.message.find(item => item.type == 'at')?.qq
if (!qq) return e.reply('请艾特要修改的人哦~')
let text = e.msg.replace(/#|修改头衔/g, '')
let text = e.msg.replace(/#?修改头衔/g, '')
let res = await e.group.setTitle(qq, text)
if (res) {
e.reply(`已经把这个小可爱的头衔设置为「${text}」辣`)