2.5.0 • Published 11 months ago

@kitsu-org/cardboard v2.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Cardboard 📦

Cardboard is a module that allows you to easily work with misskey, with a focus on Sharkey.

No dependencies, strictly typed, and looking quite stylish!

Example

import { CardboardClient } from '@kitsu-org/cardboard';
const cardboard = new CardboardClient("kitsunes.club", "yourkeyhere");

cardboard.on("ready", async () => {
    cardboard.log("Ready!")
});

cardboard.on("mention", async (msg) => {
    if (
        msg.note.text
            ?.replaceAll(`@${(await cardboard.getSelf()).user.username} `, "")
            .startsWith("hello")
    ) {
        await msg.reply("Cardboard! 📦");
    }
});

cardboard.connect();

installation

Installing cardboard is easy! You can install cardboard by including it into your project, like so!

# Install the stable version of cardboard
bun add @kitsu-org/cardboard

If you want to use the cutting edge version, you can install it through git.

⚠️ You should keep in mind that reliability will not be great if you use this method, but you'll get more features.

# Install the development edition
bun add github:kitsu-org/cardboard
2.5.0

11 months ago

2.4.1

11 months ago

2.4.0

11 months ago

2.3.1

11 months ago

2.4.2

11 months ago

2.3.0

11 months ago

2.2.0

11 months ago

2.1.3

11 months ago

2.1.2

11 months ago

2.1.1

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.6.0

11 months ago

1.5.0

12 months ago

1.4.0

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago