Git Product home page Git Product logo

mistskey's Introduction


The Powerfull API Wrapper for node.js and Nice Bot Developers

About

Misskey.io等、Misskey系統SNS API専用APIラッパーです。

Install

npm i mistskey

How to use

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:")
    }

})

License

MIT Licence.

mistskey's People

Contributors

akikaki-bot avatar

Stargazers

Ty avatar Kur0den0010 avatar あいしぃー avatar

mistskey's Issues

Add the host filter

TimeLineMessage.isthis.host(host : string) => Boolean

を追加。
isthisは(class TypeofChannel extends T ).component.uri
(T = Note)
からequalになるかBoolを返すようにする

おわり。

if not debug mode, but ws manager outputs log

[WSManagePackage] Disconnect from Incetance. Retry in 5000ms.
 null
[WSManagePackage] Retrying....
[WSManagePackage]
 InitURL : wss://mi.shizen.lol/streaming?i=ywmEBInEVzzNn3Qq
 IsReconnect : false (by the default : false)
 maxResume : None
 Resumed : 0 (by the default  : 0)

Cannot read properties of undefined (reading 'BodyId')

Trace log:

        this.BodyId = note.BodyId;
                           ^
TypeError: Cannot read properties of undefined (reading 'BodyId')
    at new Note (A:\production\zzzbot\node_modules\mistskey\build\src\components\note.js:17:28)
    at new TimeLineMessage (A:\production\zzzbot\node_modules\mistskey\build\src\components\timelineMessage.js:18:24)
    at WebSocketManager.<anonymous> (A:\production\zzzbot\node_modules\mistskey\build\src\index.js:165:34)
    at WebSocketManager.emit (node:events:517:28)
    at WebSocketManager.emit (node:domain:489:12)
    at WebSocket.websocket.onmessage (A:\production\zzzbot\node_modules\mistskey-websocket-manager\build\src\websocketmanager.js:58:18)
    at callListener (A:\production\zzzbot\node_modules\ws\lib\event-target.js:290:14)
    at WebSocket.onMessage (A:\production\zzzbot\node_modules\ws\lib\event-target.js:209:9)
    at WebSocket.emit (node:events:517:28)
    at WebSocket.emit (node:domain:489:12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.