Misskey.io等、Misskey系統SNS API専用APIラッパーです。
npm i mistskey
import { Client } from "mistskey"
const client = new Client("globalTimeline")
client.login("Your Access Token")
client.on('ready', () => {
console.log("Logined at : "+client.i.username)
client.i.note('MisTsKeyでBotが産声を上げたぞ!')
})
client.on('timelineCreate', async (note) => {
if(message.message.text.match(/!MisTsKey/)){
await note.message.reply('やっはろー!')
await note.renote()
await note.reaction(":igyo:")
}
})
MIT Licence.