Merge branch 'main' of https://github.com/Nefrace/godotbot into main
This commit is contained in:
		
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							@ -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]
 | 
			
		||||
@ -594,4 +594,4 @@ async function processKarma(msg, match, settings={}) {
 | 
			
		||||
            bot.sendMessage(chat_id, message, {parse_mode: "MarkdownV2"})
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user