mirror of
https://github.com/syuilo/ai.git
synced 2025-04-18 08:36:42 +00:00
commit
1b860bb0d7
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