Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 817 Bytes

readme.md

File metadata and controls

40 lines (31 loc) · 817 Bytes

About

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

Installation

npm install mewcard

Example

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

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

    const card = new mewcard()
        .setName("Biru Baru")
        .setAuthor("Sejenak")
        .setColor("auto")
        .setTheme("classic")
        .setBrightness(50)
        .setThumbnail("https://cdn.is-a.fun/mewwme/mewwme.png")
        .setProgress(10)
        .setStartTime("0:00")
        .setEndTime("04:27")

    const cardBuffer = await card.build();

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

Originial Source

https://github.com/a3pire