Merge branch 'main' of https://github.com/Nefrace/godotbot into main

This commit is contained in:
Nefrace 2021-03-21 16:49:09 +03:00
commit bbd45a77df
1 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ bot.onText(/(оффтоп|offtop)/i, async msg => {
Chat.updateOne({uid: msg.chat.id}, {$set: {lastOfftop: msgDate}}).exec()
})
bot.onText(/док(ументац[а-я]+|[а-я])? ((п)?о )?(?<topic>@?[\w\d]{4,32})/, async(msg, match) => {
bot.onText(/док(ументац[а-я]+|[а-я])? ((п)?о )?(?<topic>@?[\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]