feat: 削除分追加

This commit is contained in:
n1lsqn 2023-11-13 15:47:08 +09:00
parent 1b07eb4f7a
commit d4a670d107

View file

@ -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", "")
}); });
}); });
} }