Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.05 KB

usdsonginfo.md

File metadata and controls

49 lines (38 loc) · 1.05 KB
description
Returns of info of the current playing song.

$songInfo

This function returns the <property> of the currently playing song.

Raw usage: $songInfo[property;position]

Exapmple for current playing song:

bot.command({
name: "songInfo",
code: `
Currrently Playing: $songInfo[title]
`
})

Example for next playing song:

bot.command({
name: "next-song",
code: `
Next Playing: $songInfo[title;1]
`
})

Properties:

  • title - Song Title
  • description - Description of the song's YouTube video.
  • duration - Duration of the song
  • duration_left - Duration left for the song to end.
  • current_duration - The current duration of the song.
  • url - URL to the youtube video of the current song.
  • userID - ID of the sser that added the song.
  • thumbnail - The thumbnail of the song.
  • publisher - Channel that uploaded the song.
  • publisher_url - Link of the channel that uploaded the song.

{% hint style="info" %} The cuurent song's position is 0- so next one's is 1 and so on... {% endhint %}