mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
feat: @aiを取り除く
This commit is contained in:
parent
9dffcb2086
commit
1b07eb4f7a
1 changed files with 2 additions and 2 deletions
|
@ -101,12 +101,12 @@ 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);
|
msg.friend.updateName(name.replace("@ai", ""));
|
||||||
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
|
name: name.replace("@ai", "")
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue