Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.2 KB

readme.md

File metadata and controls

48 lines (38 loc) · 1.2 KB

About

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

Installation

npm install git+https://github.com/reedroux/rdxmusicard

Example

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

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

    const card = new mikocard()
        .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(`rdxmusicard `, cardBuffer);
    console.log("Done!");
})()

Output

This is the classic output of musicard. Discord Icon

Originial Source

https://github.com/a3pire

Projects

Sr. Name Platform
1 Reedroux LLC TS/JS