MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. Drincann
    3. Topics
    • Profile
    • Following 2
    • Followers 0
    • Topics 3
    • Posts 6
    • Best 0
    • Controversial 1
    • Groups 1

    Topics created by Drincann

    • Drincann

      是否有开源项目实现了 qq 空间相关接口呢,
      HTTP API和第三方SDK • • Drincann

      5
      -2
      Votes
      5
      Posts
      1188
      Views

      Drincann

      例如发说说这种

    • Drincann

      有社区论坛了很高兴,就是有点伤心
      摸鱼区 • • Drincann

      1
      0
      Votes
      1
      Posts
      319
      Views

      Drincann

      伤心是因为,发了两天邮件也没收到。

    • Drincann

      【社区 SDK】Mirai-js,浏览器/Node.js,简单的 QQ 机器人开发框架
      其他项目发布 • • Drincann

      1
      0
      Votes
      1
      Posts
      781
      Views

      Drincann

      仓库 -> Drincann/Mirai-js
      文档 -> https://drincann.github.io/Mirai-js

      基于 mirai-api-http,接口简洁优雅且符合直觉,开发迅速。

      运行在浏览器或 Node.js 下。 完整的 API 文档和示例。 完整的 typescript 类型声明。 事无巨细的代码注释。 没有强制的 logger,所有模块都是渐进式的,干净的框架。 良好的 Promise 封装, 提供事件流的中间件实现,提供大量实用预定义中间件。 实现了事件异步作用域下消息的 同步 io,异步消息将从调用处返回,异步连续对话就跟写同步代码一样符合直觉,不需要记录状态。 hello world npm install mirai-js const { Bot, Message } = require('./src/Mirai-js'); (async () => { try { const bot = new Bot(); await bot.open({ baseUrl: 'http://example.com:8080', qq: 1019933576, authKey: 'authKey', }); bot.on('FriendMessage', async data => { await bot.sendMessage({ friend: data.sender.id, message: new Message().addText('hello world!'), }); }); } catch (err) { console.log(err); } })();
    • 1 / 1