mirror of
https://github.com/syuilo/ai.git
synced 2025-02-26 17:43:58 +00:00
parent
a1965b56ae
commit
7814bef9b1
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ export default class extends Module {
|
|||
if (!msg.text.includes('って呼んで')) return false;
|
||||
if (msg.text.startsWith('って呼んで')) return false;
|
||||
|
||||
const name = msg.text.match(/^(.+?)って呼んで/g)![1];
|
||||
const name = msg.extractedText.match(/\s*(.+?)って呼んで/)![1];
|
||||
|
||||
if (name.length > 10) {
|
||||
msg.reply(serifs.core.tooLong);
|
||||
|
|
Loading…
Reference in a new issue