Skip to content

Commit

Permalink
Fixed play command button not working issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaBotz authored Jul 11, 2024
1 parent f103d65 commit 80924fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lib/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
Expand Down Expand Up @@ -386,4 +386,4 @@ const number = Number(num[0]);
return cmd;
}

module.exports = { buttons };
module.exports = { buttons };

0 comments on commit 80924fd

Please sign in to comment.