songcard

1.2.0 • Public • Published

songcard

A simple package to create song card when play songs in discord.

NPM version

NPM Banner

This package was originally used only for my personal needs to generate a song card when users play songs using my Discord bot, but then I decided to make this package open source and let everyone use it.


Install

npm install songcard
# or
yarn add songcard

Usage

Option Type Description
imageBg String Image that will be display to the songcard.

Example: https://images-ext-1.discordapp.net/external/uw_-bWFyeXnWb11wGThe2CAbTYdrxzFqMJ2trxDIYVE/https/i.scdn.co/image/ab67616d0000b2738ad8f5243d6534e03b656c8b?width=468&height=468
File format: PNG/JPEG
imageText String Text that will be display to the songcard.
trackStream Boolean Whether to set the trackDuration and trackTotalDuration to LIVE

Example: if trackStream is true the trackDuration and totalTrackDuration will show as LIVE else it will show number.
trackDuration Integer Show current duration of the songs. If no value provide it will show 0:00.
trackTotalDuration Integer Show the songs duration.

Themes

1. Classic

Example


2. Simple

Example

Package Sidebar

Install

npm i songcard

Weekly Downloads

503

Version

1.2.0

License

ISC

Unpacked Size

24.3 MB

Total Files

19

Last publish

Collaborators

  • lewdhutao_