# receiver-meow
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)
[![Build status](https://github.com/chenxuuu/receiver-meow/workflows/build/badge.svg)](https://github.com/chenxuuu/receiver-meow/actions?query=workflow%3Abuild)
[![MIT](https://img.shields.io/static/v1.svg?label=license&message=MIT&color=green)](https://github.com/chenxuuu/receiver-meow/blob/master/LICENSE)
[![NLua](https://img.shields.io/badge/dependencies-NLua-green.svg)](https://github.com/NLua/NLua/)
[![code-size](https://img.shields.io/github/languages/code-size/chenxuuu/receiver-meow.svg)](https://github.com/chenxuuu/receiver-meow/archive/master.zip)
能运行`lua`脚本的接待喵qq机器人,欢迎加入交流群`931546484`
## 功能
- 对接[OneBot](https://github.com/howmanybots/onebot)的http/websocket通讯协议
- 使用 .Net Core 5 开发,可跨平台
- 消息处理逻辑,完全由lua实现
- lua代码动态加载,重载虚拟机后,立即生效
- Lua层可直接调用C#层接口
- 自带了http(s) post/get、2D图片处理、数据存储(xml)等接口
## 下载
正式版:[GitHub Releases](https://github.com/chenxuuu/receiver-meow/releases)
快照版:[appveyor](https://ci.appveyor.com/project/chenxuuu/receiver-meow/build/artifacts)
## 默认脚本
自从插件的`V2.0.0`版本开始,默认脚本仓库与主仓库分离,Lua代码可在此仓库查看:[receiver-meow-lua](https://github.com/chenxuuu/receiver-meow-lua)
## 使用Lua进行开发
与机器人相关的,收发消息与各种事件的处理接口、脚本运行逻辑、各接口调用方法,请参阅[develop.md](develop.md)的描述
## Task架构介绍
主虚拟机由Task框架调度,具体的任务、定时器用法请见[LuaTask项目的Readme](https://github.com/chenxuuu/LuaTask-csharp)
每次收到新的消息上报,便会加到对应名称的Lua虚拟机中来处理,具体分配代码见[Events.cs](https://github.com/chenxuuu/receiver-meow/blob/Native.Csharp.Frame-4.0/ReceiverMeow/ReceiverMeow/App/Events.cs)
整个LuaTask管理,由[LuaStates.cs](https://github.com/chenxuuu/receiver-meow/blob/Native.Csharp.Frame-4.0/ReceiverMeow/ReceiverMeow/App/LuaEnv/LuaStates.cs)控制:
```log
LuaStates.cs文件的代码逻辑
+-----------+ +--------------------+
New message| | Name not exist | |
>>>>>>>>>>>+ lua pool +--------------->+create new lua state|
| | | |
+----+------+ +-------+----------+-+
| | |
|Name Exist | |
v | |
+--------+-------------------+ | |
| add new task to this state +<----------+ |
+-------------+--------------+ |
| |
| |
+-------------+-------------+ |
| | start run new state |
| task framework running +<----------------------+
| |
+---------------------------+
```
## 食用
先去下载一个支持[OneBot](https://github.com/howmanybots/onebot)的框架,推荐[go-cqhttp](https://github.com/Mrs4s/go-cqhttp/releases)。配置好qq和密码跑起来
接待喵使用的连接方式为:HTTP接口、WebSocket消息触发
下载接待喵:[releases](https://github.com/chenxuuu/receiver-meow/releases)
推荐运行时开个死循环,这样即使软件崩溃,也可以自动重启,例如下面两种:
run.bat
```bat
:go
receiver-meow.exe
goto go
```
run.sh
```bash
while [ 1 ]
do
./receiver-meow
done
```
命令行可添加参数(`http的端口`、`ws的端口`),运行后,输入`?`即可查看帮助
默认脚本可以在群内输入`帮助`查看自带功能
脚本的功能解释请见[Lua脚本项目的Readme](https://github.com/chenxuuu/receiver-meow-lua)
## 结尾
本项目基于MIT协议
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/NAGATOYUKl"><img src="https://avatars3.githubusercontent.com/u/42117627?v=4" width="100px;" alt=""/><br /><sub><b>一般通过吃瓜群众</b></sub></a><br /><a href="#maintenance-NAGATOYUKl" title="Maintenance">🚧</a> <a href="https://github.com/chenxuuu/receiver-meow/commits?author=NAGATOYUKl" title="Code">💻</a> <a href="#ideas-NAGATOYUKl" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/littlecxm"><img src="https://avatars0.githubusercontent.com/u/16154023?v=4" width="100px;" alt=""/><br /><sub><b>CXM</b></sub></a><br /><a href="https://github.com/chenxuuu/receiver-meow/commits?author=littlecxm" title="Code">💻</a> <a href="https://github.com/chenxuuu/receiver-meow/issues?q=author%3Alittlecxm" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/morinoyuki"><img src="https://avatars1.githubusercontent.com/u/37149715?v=4" width="100px;" alt=""/><br /><sub><b>morinoyuki</b></sub></a><br /><a href="https://github.com/chenxuuu/receiver-meow/commits?author=morinoyuki" title="Code">💻</a> <a href="https://github.com/chenxuuu/receiver-meow/issues?q=author%3Amorinoyuki" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/gy39830"><img src="https://avatars1.githubusercontent.com/u/60922309?v=4" width="100px;" alt=""/><br /><sub><b>gy39830</b></sub></a><br /><a href="https://github.com/chenxuuu/receiver-meow/commits?author=gy39830" title="Code">💻</a> <a href="https://github.com/chenxuuu/receiver-meow/issues?q=author%3Agy39830" title="Bug reports">🐛</a></td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
人工智能项目资料- 【探索人工智能的宝藏之地】 无论您是计算机相关专业的在校学生、老师,还是企业界的探索者,这个项目都是为您量身打造的。无论您是初入此领域的小白,还是寻求更高层次进阶的资深人士,这里都有您需要的宝藏。不仅如此,它还可以作为毕设项目、课程设计、作业、甚至项目初期的立项演示。 【人工智能的深度探索】 人工智能——模拟人类智能的技术和理论,使其在计算机上展现出类似人类的思考、判断、决策、学习和交流能力。这不仅是一门技术,更是一种前沿的科学探索。 【实战项目与源码分享】 我们深入探讨了深度学习的基本原理、神经网络的应用、自然语言处理、语言模型、文本分类、信息检索等领域。更有深度学习、机器学习、自然语言处理和计算机视觉的实战项目源码,助您从理论走向实践,如果您已有一定基础,您可以基于这些源码进行修改和扩展,实现更多功能。 【期待与您同行】 我们真诚地邀请您下载并使用这些资源,与我们一起在人工智能的海洋中航行。同时,我们也期待与您的沟通交流,共同学习,共同进步。让我们在这个充满挑战和机遇的领域中共同探索未来!
资源推荐
资源详情
资源评论
收起资源包目录
依靠Lua脚本实现功能的QQ机器人插件,基于 .Net 5。 对接OneBot协议。.zip (34个子文件)
资料总结
.github
ISSUE_TEMPLATE
--bug.md 507B
------.md 367B
workflows
build.yml 2KB
release.yml 6KB
FUNDING.yml 681B
LICENSE 4KB
ReceiverMeow
ReceiverMeow
Utils.cs 18KB
Meow.cs 11KB
LuaEnv
LuaTask.cs 19KB
XmlApi.cs 8KB
TcpServer.cs 3KB
Mqtt.cs 7KB
LuaStates.cs 3KB
ReceiverMeow.csproj 2KB
Settings.cs 4KB
Resources
prob_emit.json 1.16MB
prob_trans.json 292B
pos_prob_emit.json 2.92MB
cn_synonym.txt 872KB
idf.txt 5.91MB
char_state_tab.json 856KB
dict.txt 4.84MB
pos_prob_start.json 6KB
pos_prob_trans.json 165KB
stopwords.txt 4KB
Log.cs 2KB
GoHttp
Ws.cs 11KB
Http.cs 2KB
CQ.cs 717B
ReceiverMeow.sln 1KB
.all-contributorsrc 1KB
develop.md 2KB
.gitignore 5KB
README.md 6KB
共 34 条
- 1
资源评论
妄北y
- 粉丝: 1w+
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功