2.0.5 • Published 2 months ago

musicard v2.0.5

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
2 months ago

NPM Version NPM Downloads NPM License GitHub Repo stars

Installation

// using npm
npm install musicard

// using yarn
yarn add musicard

Usage

You can use the Musicard package in your Discord bots, websites, etc.

Using Create File

import { Classic } from "musicard";
import fs from 'fs'

//OR

const { Classic } = require("musicard");
const fs = require('fs')

Classic({}).then(x => {
    fs.writeFileSync("output.png", x)
})

Using Discord Bot

const { Classic } = require("musicard");
const fs = require("fs")

const musicard = await Classic({});

...

return message.channel.send({
    files: [{
        attachment: musicard
    }]
})

Custom Background (New)

Use a custom image background and also adjust the darkness of the image.

import { Classic } from "musicard";
import fs from 'fs'

Classic({
    thumbnailImage: "https://cdn.discordapp.com/attachments/1220001571228880917/1220001571690123284/01.png?ex=660d5a01&is=65fae501&hm=a8cfb44844e61aa0fd01767cd363af048df28966c30d7b04a59f27fa45cf69c4&",
    backgroundImage: "https://cdn.discordapp.com/attachments/1220001571228880917/1220001571690123284/01.png?ex=660d5a01&is=65fae501&hm=a8cfb44844e61aa0fd01767cd363af048df28966c30d7b04a59f27fa45cf69c4&",
    imageDarkness: 60,
    nameColor: "#DC92FF",
    progressColor: "#DC92FF",
    progressBarColor: "#2B2B2B",
    progress: 50
}).then(x => {
    fs.writeFileSync("output.png", x)
})

custom

Themes

Musicard is the #1 canvas library to create music cards with awesome themes.

Classic

classic

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

    const musicard = await Classic({
        thumbnailImage: "https://lh3.googleusercontent.com/yavtBZZnoxaY21GSS_VIKSg0mvzu1b0r6arH8xvWVskoMaZ5ww3iDMgBNujnIWCt7MOkDsrKapSGCfc=w544-h544-l90-rj",
        backgroundColor: "#070707",
        progress: 10,
        progressColor: "#FF7A00",
        progressBarColor: "#5F2D00",
        name: "Burn",
        nameColor: "#FF7A00",
        author: "By 2WEI & Edda Hayes",
        authorColor: "#696969",
        startTime: "0:00",
        endTime: "4:00",
        timeColor: "#FF7A00"
    });

    fs.writeFileSync("musicard.png", musicard);
})()

Classic Pro

classicpro

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

    const musicard = await ClassicPro({
        thumbnailImage: "https://lh3.googleusercontent.com/yavtBZZnoxaY21GSS_VIKSg0mvzu1b0r6arH8xvWVskoMaZ5ww3iDMgBNujnIWCt7MOkDsrKapSGCfc=w544-h544-l90-rj",
        backgroundColor: "#070707",
        progress: 10,
        progressColor: "#FF7A00",
        progressBarColor: "#5F2D00",
        name: "Burn",
        nameColor: "#FF7A00",
        author: "By 2WEI & Edda Hayes",
        authorColor: "#696969",
        startTime: "0:00",
        endTime: "4:00",
        timeColor: "#FF7A00"
    });

    fs.writeFileSync("musicard.png", musicard);
})()

Dynamic

dynamic

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

    const musicard = await Dynamic({
        thumbnailImage: "https://lh3.googleusercontent.com/yavtBZZnoxaY21GSS_VIKSg0mvzu1b0r6arH8xvWVskoMaZ5ww3iDMgBNujnIWCt7MOkDsrKapSGCfc=w544-h544-l90-rj",
        backgroundColor: "#070707",
        progress: 10,
        progressColor: "#FF7A00",
        progressBarColor: "#5F2D00",
        name: "Burn",
        nameColor: "#FF7A00",
        author: "By 2WEI & Edda Hayes",
        authorColor: "#696969"
    });

    fs.writeFileSync("musicard.png", musicard);
})()

Mini

mini

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

    const musicard = await Mini({
        thumbnailImage: "https://lh3.googleusercontent.com/yavtBZZnoxaY21GSS_VIKSg0mvzu1b0r6arH8xvWVskoMaZ5ww3iDMgBNujnIWCt7MOkDsrKapSGCfc=w544-h544-l90-rj",
        backgroundColor: "#070707",
        progress: 10,
        progressColor: "#FF7A00",
        progressBarColor: "#5F2D00",
        menuColor: "#FF7A00",
        paused: false
    });

    fs.writeFileSync("musicard.png", musicard);
})()

Resource

Pull request to add your project here.

Riffy Music Bothttps://github.com/riffy-team/riffy-music-bot

Licence

GPL

2.0.5

2 months ago

2.0.4-beta.0

2 months ago

2.0.4

2 months ago

2.0.3

3 months ago

2.0.2

3 months ago

2.0.2-beta.6

3 months ago

2.0.2-beta.1

3 months ago

2.0.0-beta.2

3 months ago

2.0.2-beta.2

3 months ago

2.0.0-beta.1

3 months ago

2.0.2-beta.3

3 months ago

2.0.2-beta.4

3 months ago

2.0.1-beta.1

3 months ago

2.0.2-beta.5

3 months ago

2.0.1

3 months ago

2.0.0

3 months ago

2.0.0-beta.3

3 months ago

2.0.0-beta.0

3 months ago

1.5.3

4 months ago

1.5.0-dev.0.2

8 months ago

1.5.0-dev.0.1

8 months ago

1.5.2

7 months ago

1.5.1

8 months ago

1.5.0

8 months ago

1.5.1-canvas

8 months ago

1.3.5

8 months ago

1.4.3

8 months ago

1.3.4

8 months ago

1.4.2

8 months ago

1.3.3

8 months ago

1.4.1

8 months ago

1.4.0

8 months ago

1.4.0-dev

8 months ago

1.3.2

9 months ago

1.3.1

9 months ago

1.3.0

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.0.0

9 months ago