scnario commited on
Commit
007119d
·
verified ·
1 Parent(s): cacf28a

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -0
server.js CHANGED
@@ -59,6 +59,7 @@ function fetchInfo({ url }) {
59
 
60
  bot.on('message', async(msg) => {
61
  const cid = msg.chat.id
 
62
  const regex = /(?:surl=|\/)([a-zA-Z0-9-_]+)$/
63
  const match = url.match(regex)
64
  if(!match) return
 
59
 
60
  bot.on('message', async(msg) => {
61
  const cid = msg.chat.id
62
+ const url = msg.text
63
  const regex = /(?:surl=|\/)([a-zA-Z0-9-_]+)$/
64
  const match = url.match(regex)
65
  if(!match) return