JSPM

queuecard

1.5.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 64
  • Score
    100M100P100Q68243F
  • License MIT

Experience your Discord bot's music in a visual format.

Package Exports

  • queuecard
  • queuecard/build/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (queuecard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

About

Musicard is a futuristic music card library designed for Discord bots.

Installation

npm install musicard

Example

This example code will generate a music card image and save it.

(async () => {
    const { musicCard } = require("musicard");
    const fs = require("fs");

    const card = new musicCard()
        .setName("Bad Habits")
        .setAuthor("By Ed Sheeran")
        .setColor("auto")
        .setTheme("dynamic")
        .setBrightness(50)
        .setThumbnail("https://static.qobuz.com/images/covers/ga/ua/rmk2cpqliuaga_600.jpg")
        .setProgress(10)
        .setStartTime("0:00")
        .setEndTime("3:00")

    const cardBuffer = await card.build();

    fs.writeFileSync(`musicard.png`, cardBuffer);
    console.log("Done!");
})()

Output

This is the classic output of musicard. classic

This is the dynamic output of musicard. dynamic

Projects

Sr. Name Platform
1 Riffy Music Bot (Official) discord.js