mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
feat: 削除分追加
This commit is contained in:
parent
1b07eb4f7a
commit
d4a670d107
1 changed files with 5 additions and 1 deletions
|
@ -101,12 +101,16 @@ export default class extends Module {
|
||||||
const withSan = titles.some(t => name.endsWith(t));
|
const withSan = titles.some(t => name.endsWith(t));
|
||||||
|
|
||||||
if (withSan) {
|
if (withSan) {
|
||||||
msg.friend.updateName(name.replace("@ai", ""));
|
msg.friend.updateName(
|
||||||
|
name.replace("@ai", "")
|
||||||
|
.replace("@papi.n1l.dev", "")
|
||||||
|
);
|
||||||
msg.reply(serifs.core.setNameOk(name));
|
msg.reply(serifs.core.setNameOk(name));
|
||||||
} else {
|
} else {
|
||||||
msg.reply(serifs.core.san).then(reply => {
|
msg.reply(serifs.core.san).then(reply => {
|
||||||
this.subscribeReply(msg.userId, reply.id, {
|
this.subscribeReply(msg.userId, reply.id, {
|
||||||
name: name.replace("@ai", "")
|
name: name.replace("@ai", "")
|
||||||
|
.replace("@papi.n1l.dev", "")
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue