Coder Social home page Coder Social logo

opqbot-native's Introduction

OPQBot-Native

OPQBot 酷Q插件 兼容框架,借用了Native.FrameWork的CQ码处理函数

写在前面

这是一个非常粗糙的程序,目前这个框架只能应付不是特别复杂的应用,大部分的事件与函数都没有经过深入的测试,也没有长时间的挂机稳定性测试,感觉会出很多的问题。希望得到大家对于代码层面上的支援。项目将会持续维护,多多包涵!
此框架仅可以运行编译得到的dll与json,不支持cpk以及从cpk导出的dll

食用教程

  1. 下载一个release包并解压
  2. 运行OPQBot服务端并登录
  3. 将要运行的酷Q插件的dll以及json放到plugins文件夹内
  4. 如果插件有数据配置,可以直接复制到data文件夹下
  5. 运行解压后的Launcher.exe
  6. 按照配置输入相关配置即可

搭建教程

CQHttp

下载地址 不需要特殊配置,扔进去即可使用

事件实现进度

  • id: 1 私聊消息处理
  • id: 2 群消息处理
  • id: 3 讨论组消息处理(讨论组不存在,将不会实现)
  • id: 4 群文件上传事件处理
  • id: 5 群管理变动事件处理(无法获取操作者QQ,似乎是接口未提供)
  • id: 6 群成员减少事件处理(无法获取操作者QQ,以及主动退群还是被踢)
  • id: 7 群成员增加事件处理(无法获取操作者QQ)
  • id: 8 群禁言事件处理
  • id: 10 好友已添加事件处理
  • id: 11 好友添加请求处理
  • id: 12 群添加请求处理(暂时不能获取是被邀请还是主动进群)
  • id: 1001 酷Q启动事件
  • id: 1002 酷Q关闭事件
  • id: 1003 应用已被启用
  • id: 1004 应用将被停用
  • 呼出窗口

CQ码解析进度

  • 图片(CQ:image)
  • at(CQ:at)
  • 音频(CQ:record)
  • 地图(CQ:loaction)
  • xml消息(CQ:rich)
  • 表情(CQ:face)
  • emoji(CQ:emoji)
  • 原创表情(CQ:bface)
  • 红包(CQ:hb)
  • 签到(CQ:sign)
  • 群聊/个人名片分享(CQ:contact)
  • 音乐(CQ:music)
  • 猜拳(CQ:rps)
  • 筛子(CQ:dice)
  • 戳一戳(CQ:shake)

TODO

  • 继续完善事件以及CQ码解析
  • 实现事件的优先级排序
  • 插件的启用、禁用以及重载
  • GUI界面
  • 多进程加载插件,防止插件互相冲突
  • 日志通过sqlite写入本地数据库
  • 优化代码逻辑,加速执行速度 ......

已知的问题

  • 特殊字符的编码问题
  • 非C#插件(非托管代码)爆炸时主程序也可能会爆炸
  • 受限于OPQBot的WebApi并发频率限制,只能一秒一条
  • C#插件窗口闪退时会带着主程序闪退(凑数的异常捕获机制)
  • 呼起的普通WinForm有显示问题(使用GUI界面之后解决)
  • 无法处理入群请求事件
  • 断网重连问题,无法获取程序是否真的重连上服务器,表现为不能获取服务端消息推送
  • emoji解析问题,只能解析双字符宽度的emoji
  • 整理中……逐步寻找解决方案来修复

opqbot-native's People

Contributors

hellobaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wmers qiquq

opqbot-native's Issues

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.