Skip to content

Commit d392a2a

Browse files
committed
[Bugfix] use warnInlineKeyboard name consistently
instead of using warnsInlineKeyboard in code, and warnInlineKeybaord in config. Because the keyboard is attached after receiving every single warn.
1 parent ea1c8c4 commit d392a2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

handlers/commands/warn.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const { logError } = require('../../utils/log');
77
// Config
88
const {
99
numberOfWarnsToBan,
10-
warnsInlineKeyboard,
10+
warnInlineKeyboard,
1111
} = require('../../config.json');
12-
const reply_markup = { inline_keyboard: warnsInlineKeyboard };
12+
const reply_markup = { inline_keyboard: warnInlineKeyboard };
1313

1414
// Bot
1515
const bot = require('../../bot');

handlers/messages/removeLinks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const {
99
excludedChannels,
1010
excludedGroups,
1111
numberOfWarnsToBan,
12-
warnsInlineKeyboard,
12+
warnInlineKeyboard,
1313
} = require('../../config.json');
14-
const reply_markup = { inline_keyboard: warnsInlineKeyboard };
14+
const reply_markup = { inline_keyboard: warnInlineKeyboard };
1515

1616

1717
// Bot

0 commit comments

Comments
 (0)