diff --git a/index.js b/index.js index a32cb92..466c3d1 100644 --- a/index.js +++ b/index.js @@ -272,7 +272,7 @@ bot.onText(/(оффтоп|offtop)/i, async msg => { Chat.updateOne({uid: msg.chat.id}, {$set: {lastOfftop: msgDate}}).exec() }) -bot.onText(/док(ументац[а-я]+|[а-я])? ((п)?о )?(?@?[\w\d]{4,32})/, async(msg, match) => { +bot.onText(/док(ументац[а-я]+|[а-я])? ((п)?о )?(?@?[\w\d]{4,32})/i, async(msg, match) => { const chat = await getChat(msg.chat) console.log(match.length, match, match[match.length-1]) const topic = match[match.length-1] @@ -594,4 +594,4 @@ async function processKarma(msg, match, settings={}) { bot.sendMessage(chat_id, message, {parse_mode: "MarkdownV2"}) } } -} \ No newline at end of file +}