Skip to content

Commit e12eb38

Browse files
committed
get limit for number of codes in one message from config
1 parent 5405ea3 commit e12eb38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bot/commands/textHandler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports.textHandler = async function (ctx) {
2424
match = Array.from(new Set(message_text.match(/\d+/gm)));
2525
if (match && match[0]) {
2626
for (let i = 0; i < match.length; i++) {
27-
if (i >29){
28-
console.log("textHandler finished work - limit 30 codes")
27+
if (i >config.maximum_codes_from_one_message){
28+
console.log("textHandler finished work - limit" + maximum_codes_from_one_message + " codes")
2929
return
3030
}
3131
let manga_id = match[i],

0 commit comments

Comments
 (0)