feat: @aiを取り除く

This commit is contained in:
n1lsqn 2023-11-13 15:22:24 +09:00
parent 9dffcb2086
commit 1b07eb4f7a

View file

@ -101,12 +101,12 @@ export default class extends Module {
const withSan = titles.some(t => name.endsWith(t));
if (withSan) {
msg.friend.updateName(name);
msg.friend.updateName(name.replace("@ai", ""));
msg.reply(serifs.core.setNameOk(name));
} else {
msg.reply(serifs.core.san).then(reply => {
this.subscribeReply(msg.userId, reply.id, {
name: name
name: name.replace("@ai", "")
});
});
}