mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-28 03:22:18 +00:00
feat: fixed the waiting error (the bot didn't boot up)
This commit is contained in:
2
index.ts
2
index.ts
@@ -69,7 +69,7 @@ async function nowPlayingRadio() {
|
||||
getsong = XMLDoc.getElementsByTagName("current_song").item(0)!.textContent
|
||||
getartist = XMLDoc.getElementsByTagName("current_artist").item(0)!.textContent
|
||||
} catch (err) {
|
||||
setTimeout("", 10000)
|
||||
await new Promise(resolve => setTimeout(resolve, 10000));
|
||||
getsong = XMLDoc.getElementsByTagName("current_song").item(0)!.textContent
|
||||
getartist = XMLDoc.getElementsByTagName("current_artist").item(0)!.textContent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user