Advertisement
Shoeken

Untitled

May 14th, 2023
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(eval
  2.   const regex = /([0-9]+):([0-9]+):([0-9]+)/g;
  3.   const time = "$(query)".match(regex);
  4.  
  5.   if (time === null) {
  6.     "Please enter a valid time in the format HH:MM:SS";
  7.   } else {
  8.     const seconds = (+time[0].split(':')[0]) * 60 * 60 + (+time[0].split(':')[1]) * 60 + (+time[0].split(':')[2]);
  9.     `$(urlfetch https://https://www.twitch.tv/videos/1819919509)`;
  10.   }
  11. )
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement