0.4.2 • Published 9 months ago

tsmi v0.4.2

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

tsmi

Better Misskey API Client for TypeScript/JavaScript

Thanks

Usage

import Client from "tsmi";

const client = new Client({
  host: "https://<your-misskey-server-url>",
  token: "<YOUR_TOKEN_HERE>",
  channels: ["main", "localTimeline", "homeTimeline"],
});

client.once("ready", async (me) => {
  console.log("Client ready!");
  const user = await me.user.getMe();
  console.log("Logged in with @", user.name);
});

client.on("noteCreate", (note, timeline) => {
  if (timeline === "localTimeline") {
    console.log(note); // Only take local timeline notes
  }
});
0.4.2

9 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.3.3

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago