SMLKBOT
所属分类:机器人/智能制造
开发工具:GO
文件大小:87KB
下载次数:0
上传日期:2021-11-09 04:48:15
上 传 者:
sh-1993
说明: SMLKBOT,[PA] 聚合群聊娱乐机器人,主打功能:VTBMusic, BiliAu2Card
(SMLKBOT, [PA] aggregation group chat entertainment robot, main functions: VTBMusic, BiliAu2Card)
文件列表:
.golangci.yml (1783, 2021-11-09)
.vscode (0, 2021-11-09)
.vscode\settings.json (765, 2021-11-09)
FunctionLoader.go (379, 2021-11-09)
LICENSE (1062, 2021-11-09)
build.sh (1239, 2021-11-09)
conf.example.json (504, 2021-11-09)
data (0, 2021-11-09)
data\botstruct (0, 2021-11-09)
data\botstruct\struct.go (732, 2021-11-09)
data\helps (0, 2021-11-09)
data\helps\help.go (801, 2021-11-09)
docs (0, 2021-11-09)
docs\au9.png (4659, 2021-11-09)
docs\vtb1.png (11114, 2021-11-09)
docs\vtb2.png (4999, 2021-11-09)
docs\vtbhelp.png (40554, 2021-11-09)
go.mod (303, 2021-11-09)
go.sum (1236, 2021-11-09)
main.go (5841, 2021-11-09)
plugins (0, 2021-11-09)
plugins\bilibili (0, 2021-11-09)
plugins\bilibili\RequestBiliApi.go (1600, 2021-11-09)
plugins\bilibili\biliau2card.go (1344, 2021-11-09)
plugins\bilibili\bilibili.go (180, 2021-11-09)
plugins\music (0, 2021-11-09)
plugins\music\Music.go (1461, 2021-11-09)
plugins\music\RequestVtbApi.go (5419, 2021-11-09)
plugins\music\Structs.go (2522, 2021-11-09)
plugins\music\utils.go (14, 2021-11-09)
plugins\music\vtbmusic.go (10962, 2021-11-09)
plugins\music\waiter.go (1379, 2021-11-09)
plugins\txcloudutils (0, 2021-11-09)
... ...
# SMLKBOT
[![Jenkins](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Feas.smlk.org%3A8443%2Fjob%2FSMLKBOT%2F&style=flat-square)](https://eas.smlk.org:8443/job/SMLKBOT/)
[![GitHub issues](https://img.shields.io/github/issues/Ink-33/SMLKBOT?style=flat-square)](https://github.com/Ink-33/SMLKBOT/issues)
[![GitHub forks](https://img.shields.io/github/forks/Ink-33/SMLKBOT?style=flat-square)](https://github.com/Ink-33/SMLKBOT/network)
[![GitHub stars](https://img.shields.io/github/stars/Ink-33/SMLKBOT?style=flat-square)](https://github.com/Ink-33/SMLKBOT/stargazers)
[![GitHub license](https://img.shields.io/github/license/Ink-33/SMLKBOT?style=flat-square)](https://github.com/Ink-33/SMLKBOT/blob/master/LICENSE)
SMLKBOT是基于[OneBot协议](https://github.com/howmanybots/onebot)的一个聚合群聊娱乐机器人后端程序,支持HTTP模式与SaaS模式。
体验群:700080009
## 0.获取SMLKBOT
您可以通过Github release获取稳定版
不过,您可以选择自行构建,构建方式如下
``` bash
bash build.sh [goal]
```
当前可用的`goal`:
>HTTP //用于普通HTTP监听模式
>TencentSCF//用于腾讯云SCF模式
更多SaaS服务商的支持待接入...
## 1.功能
以下功能未特别说明的均已实装,并可以通过修改配置文件进行独立开关
### 1.1. Bilibili
已实装:
提取聊天中的au号,然后返回音频分享卡片。
效果:
![au9](docs/au9.png)
*注:不显示图片是TIM特性,图片均能在移动端QQ正常显示*
未实装:
avid,bvid解析
ep,cv解析
### 1.2. VTBMusic
VTBMusic功能可以快捷地将您喜欢的歌曲分享给大家。所有音乐资源均来自于VTBMusic,请确认您要分享的歌曲已在VTBMusic正常上架。
注意: 指令超时时间为**60秒**
指令列表(不需要空格):
```
1: 模糊点歌 -> vtb点歌+歌曲名
```
效果:
![vtb点歌](docs/vtb1.png)
```
2: 精准点歌 -> vtbid点歌+歌曲ID
```
效果:
![vtbid点歌](docs/vtb2.png)
```
3: 获取帮助 -> vtbhelp
```
效果:
![vtbhelp](docs/vtbhelp.png)
*注:不显示图片是TIM特性,图片均能在移动端QQ正常显示*
## 2.配置
将`conf.example.json`重命名为`conf.json`
以下为完整示例文件
```json
{
"CoolQ": {
"master":[
"123"
],
"Api": {
"": {
"HTTPAPIAddr": "",
"HTTPAPIToken": "",
"HTTPAPIPostSecret": ""
}
},
"HTTPServer": {
"ListeningPath": "/api/cqmsg",
"ListeningPort": 12345
}
},
"Feature": [
{
"Bilibili": true,
"VTBMusic": true
}
]
}
```
#### 解析:Master
master代表机器人的所有者,拥有SmlkShell的最高权限
数据格式为Json数组
目前已实装指令:
```
近期下载者:
相关文件:
收藏者: