diff --git a/lib/lib/buttons.js b/lib/lib/buttons.js index 06cf299fe..02c0a37dd 100644 --- a/lib/lib/buttons.js +++ b/lib/lib/buttons.js @@ -117,8 +117,8 @@ const number = Number(num[0]); */ case '06': { if (/^\d+(\.\d+)$/.test(number)) { - const num1 = number.split(".")[0]; - const num2 = number.split(".")[1]; + const num1 = body.text.split(".")[0]; + const num2 = body.text.split(".")[1]; if (Number(num2) < 3) { const pattern = /VID: ([\w-]+)/g; const matches = [...message.matchAll(pattern)]; @@ -386,4 +386,4 @@ const number = Number(num[0]); return cmd; } -module.exports = { buttons }; \ No newline at end of file +module.exports = { buttons };