fix: 打消し

This commit is contained in:
n1lsqn 2023-11-12 00:22:11 +09:00
parent 7f930320a3
commit c9abd5b77d

View file

@ -66,10 +66,7 @@ export default class extends Module {
if (!msg.text.includes('って呼んで')) return false;
if (msg.text.startsWith('って呼んで')) return false;
const matchResult = msg.text.match(/^(.+?)って呼んで/)![1];
if (matchResult !== null) {
const name = matchResult[1];
const name = msg.text.match(/^(.+?)って呼んで/)![1];
if (name.length > 10) {
msg.reply(serifs.core.tooLong);
@ -80,9 +77,6 @@ export default class extends Module {
msg.reply(serifs.core.invalidName);
return true;
}
} else {
console.log("setName: 一致するものが見つかりませんでした")
}
const withSan = titles.some(t => name.endsWith(t));