1
0
Fork 0
mirror of https://github.com/syuilo/ai.git synced 2025-03-25 21:12:56 +00:00

Merge pull request from n1lsqn/fix/name

feat: 削除分追加
This commit is contained in:
n1lsqn 2023-11-13 15:48:20 +09:00 committed by GitHub
commit 1b860bb0d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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