2.5.0 • Published 1 year ago

@kitsu-org/cardboard v2.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.4.2

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago