# vbot **Repository Path**: gitmoon007/vbot ## Basic Information - **Project Name**: vbot - **Description**: 高度自定义的微信机器人,能够实现群控制,自动回复,消息转发,防撤回,留言统计等功能 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 52 - **Created**: 2018-03-14 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
Special thanks to the generous sponsorship by:
扫码后,验证输入“echo”即可自动加为好友并且拉入vbot群。
vbot并非24小时执行,有时会因为开发调试等原因暂停功能。如果碰巧遇到关闭情况,可加Q群 492548647 了解开放时间。执行后发送“拉我”即可自动邀请进群。
vbot示例源码为 https://github.com/HanSon/vbot/tree/master/demo/vbot.php
## 文档
详细文档在[wiki](https://github.com/HanSon/vbot/wiki)中
### 小DEMO
[vbot 实例](demo/vbot.php)
[购书半自动处理](http://t.laravel-china.org/laravel-tutorial/5.1/buy-it)
[轰炸消息到某群名](example/group.php)
[消息转发](example/forward.php)
[自定义处理器](example/custom.php)
[一键拜年](example/bainian.php)
### 基本使用
```
// 图灵API自动回复
require_once __DIR__ . './../vendor/autoload.php';
use Hanson\Vbot\Foundation\Vbot;
use Hanson\Vbot\Message\Entity\Message;
use Hanson\Vbot\Message\Entity\Text;
$robot = new Vbot([
'user_path' => '/path/to/tmp/', # 用于生成登录二维码以及文件保存
'debug' => true # 用于是否输出用户组的json
]);
$robot->server->setMessageHandler(function($message){
// 文字信息
if ($message instanceof Text) {
/** @var $message Text */
// 联系人自动回复
if ($message->fromType === 'Contact') {
return 'hello vbot';
// 群组@我回复
} elseif ($message->fromType === 'Group' && $message->isAt) {
return 'hello everyone';
}
}
});
$robot->server->run();
```
## to do list
vbot 已实现以及待实现的功能列表 [点击查看](https://github.com/HanSon/vbot/wiki/todolist)
## 参考项目
[lbbniu/WebWechat](https://github.com/lbbniu/WebWechat)
[littlecodersh/ItChat](https://github.com/littlecodersh/ItChat)
感谢楼上两位作者曾对本人耐心解答
[liuwons/wxBot](https://github.com/liuwons/wxBot) 参考了整个微信的登录流程与消息处理
## 贡献者
排名不分先后,时间排序
[zhuanxuhit](https://github.com/zhuanxuhit) terminal显示二维码
[littlecodersh](https://github.com/littlecodersh) 分次加载好友数量方案
[yuanshi2016](https://github.com/yuanshi2016) 分次加载好友数量方案、登录域名方案以及测试
## Q&A
常见问题[点击查看](https://github.com/HanSon/vbot/wiki/Q&A)
有问题或者建议都可以提issue
或者加入vbot的QQ群:492548647
## donate 名单
vbot 的发展离不开大家的支持,无论是star或者donate,本人都衷心的感谢各位,也会尽自己的绵薄之力把 vbot 做到最好。
donate 名单 (排名按时间倒序)
|捐助者|金额|
|-----|----|
|[bestony](https://github.com/bestony)|¥10.24|
|匿名| ¥8.88|
|[haidaofei](https://github.com/haidaofei)|¥88.00|
|[kyaky](https://github.com/kyaky)|¥16.66|
|[justmd5](https://github.com/justmd5)|¥10.00|
|匿名| ¥20.00|
|匿名| ¥88.88|
|[:bear:Neo](https://github.com/Callwoola)|¥6.66|
|[lifesign](https://github.com/lifesign)|¥66.66|
|[口语猫](http://www.kouyumao.com/)|¥50.00|
|[Laravist - 最好的 Laravel 视频教程](https://www.laravist.com)| ¥66.66|
|[xingchenboy](https://github.com/xingchenboy)| ¥28.80|
|匿名| ¥6.66|
|[包菜网](http://baocai.us)| ¥16.88|
|[BEIBEI123](https://github.com/beibei123)| ¥28.88|
|[Steven Lei](https://github.com/stevenlei)| ¥88|
|9688| ¥8.88|
|[kisexu](https://github.com/kisexu)| ¥88|
|匿名的某师兄| ¥181.80|
|[summer](https://github.com/summerblue) 以及这是用vbot实现的半自动购书流程[Laravel 入门教程(推荐)](http://t.laravel-china.org/laravel-tutorial/5.1/buy-it)|¥66.66|
|A梦|¥18.88 * 4 |
|[toby2016](https://github.com/toby2016)|¥5|
打赏时请记得备注上你的github账号或者其他链接,谢谢支持!

