Skip to content

Mxmilu666/NyaBot-Gocq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NyaBot-Gocq

✨ 一个简单,极易上手的基于PHP以及 Swoolego-cqhttp 简单WebSocketSDK ✨

🎈已经实现接口

已实现群聊接口
  • 发送群聊消息

  • 发送群聊回复消息

  • More TODO...(咕咕咕)

已实现私聊接口
  • 发送私聊消息

  • 发送私聊回复消息

  • More TODO...(咕咕咕)

⚙️快速部署

1.下载swoole-cli对应的系统版本

2.将此仓库Clone/Download下来

git clone https://github.com/Mxmilu666/NyaBot-Gocq.git

3.在/inc/config.php中配置WS服务器和Token

4.执行

./swoole-cli bot.php

5.点一个stars

📁文件目录

.
|-- bot.php //主程序
|-- inc
|   |-- config.php //配置文件
|   `-- core.class.php //核心参数库
|-- class
|   `-- example.class.php //全局函数示例
`-- plugins
    `-- example.php //简单的示例(等我有空了补一个详细的(因为懒))

📖许可证

项目采用Apache-2.0 license协议开源

🫂感谢

Swoole提供的高性能PHP协程框架

1626424216提供的大部分框架代码和思路

这个项目只是开源我正在使用的框架,不一定可以满足所有人的需求,但是欢迎大家Pr(逃

About

A simple PHP SDK for go-cqhttp based on Swoole.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages