https://github.com/simple-robot/simbot-mirai-spring-boot-demo
simbot框架下,mirai组件的springboot快速启动器(starter)
https://github.com/simple-robot/simbot-mirai-spring-boot-demo
Last synced: 12 months ago
JSON representation
simbot框架下,mirai组件的springboot快速启动器(starter)
- Host: GitHub
- URL: https://github.com/simple-robot/simbot-mirai-spring-boot-demo
- Owner: simple-robot
- Created: 2021-02-10T03:22:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-01T15:02:25.000Z (over 4 years ago)
- Last Synced: 2023-03-04T00:26:34.507Z (over 3 years ago)
- Language: Java
- Size: 41 KB
- Stars: 10
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simbot springboot starter demo - Mirai
这是[simple-robot](https://github.com/ForteScarlet/simpler-robot) 框架使用[mirai组件](https://github.com/ForteScarlet/simpler-robot/tree/dev/component/component-mirai) 对接[Mirai](https://github.com/mamoe/mirai) 并整合为 Spring Boot 的Demo项目。
## 需要做的
### fork/clone
fork或者clone此项目到你的本地,并使用IDE工具打开并构建它。
### 修改配置文件
打开文件 [application.yml](src/main/resources/application.yml) 并修改其中的 `simbot.core.bots` 项为你测试用的QQ账号,例如:
```yaml
simbot:
core:
bots: 123456789:password
```
### 保证安静
将你的bot放在一些测试用的群而不是一些大型群。
### 阅读
- [listener](src/main/java/simbot/example/listener) 包下为一些监听函数示例。阅读它们的注释,并可以试着修改它们。
### 运行
执行[SimbotExampleApplication](src/main/java/simbot/example/SimbotExampleApplication.java) 中的main方法。
### 验证
如果你是第一次使用此框架,且出现了诸如需要“滑动验证”等相关错误,你可以尝试先使用一次 [simbot-mirai-login-solver-selenium-helperPack](https://github.com/simple-robot/simbot-mirai-login-solver-selenium-helperPack) 来使腾讯记住你的设备信息。
以及,记得关闭账号中与“设备锁”、“安全保护”等相关内容。
### 协助
如果你有一个好的示例点子,你可以通过[github pr](https://github.com/simple-robot/simbot-mirai-spring-boot-demo/pulls) 来协助此demo项目的更新。