Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit fe698a0

Browse files
authored
Merge pull request #77 from eric2788/v2.0
2 parents ccac4dc + 3695d61 commit fe698a0

File tree

168 files changed

+5445
-1724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+5445
-1724
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Go
4343
uses: actions/setup-go@v2
4444
with:
45-
go-version: 1.17
45+
go-version: 1.19
4646

4747
- name: Build Windows
4848
run: go build --buildmode=exe -o ./dist/${{ env.artifact_name }}.exe

.github/workflows/push-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v2
2121
with:
22-
go-version: 1.17
22+
go-version: 1.19
2323
- uses: FedericoCarboni/setup-ffmpeg@v1
2424
- name: Install dependencies
2525
run: |
2626
go mod download
27+
- uses: shogo82148/actions-setup-redis@v1
28+
with:
29+
redis-version: '6.x'
2730
- name: Run tests
2831
run: |
2932
go test -v ./...

.github/workflows/verify.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.17
21+
go-version: 1.19
22+
- uses: shogo82148/actions-setup-redis@v1
23+
with:
24+
redis-version: '6.x'
2225
- name: Install dependencies
2326
run: |
2427
go mod download

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
**/logs/**
66
session.token
77
**/imgtxt/*.png
8+
**/huggingface/*.png
9+
**/huggingface/*.jpeg
810
**/file/*.yaml
911
**/*.exe
1012
**/cache/**
11-
**/codec/**
13+
!**/cache/*.go
14+
**/codec/**
15+
*.local
16+
**/.vscode/**

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.17-alpine AS builder
1+
FROM golang:1.19-alpine AS builder
22

33
WORKDIR /app
44

@@ -7,7 +7,7 @@ COPY . .
77
# install timzone data
88
RUN apk add --no-cache tzdata
99

10-
RUN go mod tidy -compat="1.17"
10+
RUN go mod tidy -compat="1.19"
1111
RUN go mod download
1212
RUN go build -v -o /go/bin/valbot
1313

@@ -23,6 +23,8 @@ RUN chmod +x /valbot
2323
EXPOSE 8080
2424

2525
ENV TZ=Asia/Hong_Kong
26+
ENV COMPRESS_TYPE=zlib
27+
ENV CACHE_STRATEGY=local
2628

2729
WORKDIR /app
2830

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010

1111
## 目前内置的功能
1212

13-
- 文字转语音(TTS), 说话
13+
- QQ/原神文字转语音(TTS), 说话
1414
- 基于 `XX是XXX吗?` 的格式随机回答是非题 (可指令设置或基于 Seed 生成)
1515
- 自定义回应(可指令设置)
1616
- 显示撤回的消息(可指令设置开关)
17-
- 随机 @群成员,随机抽一则群精华消息显示,随机抽一则群消息显示
18-
- 透过 @机器人 並说点东西,将会随机发送一则群消息作为回复
17+
- 随机 @群成员,随机抽一则群精华消息显示,随机抽一则群消息显示,随机龙图
18+
- 随机瓦洛兰特资源抽选 (武器,角色,套装)
19+
- 透过 @机器人 並说点东西,将会发送人工智能消息作为回复
1920
- 显示上个月/上年度的今天所设置的群精华消息 (鞭尸用) (可指令设置月还是年)
2021
- 查成分指令(群成员的资料)
2122
- B站开播通知 (可指令设置)
@@ -27,6 +28,13 @@
2728
- 機器人離線自動重登機制
2829
- Discord <-> QQ 跨平台聊天
2930
- 查询瓦洛兰特战绩和对战记录
31+
- 发送coser图
32+
- 搜色图 (只有Discord才能搜R18图)
33+
- 偶尔抓取群成员一个消息进行自动回复
34+
- 偶尔发送群图片/群消息活跃气氛
35+
- 自动群复读/打断复读
36+
- 记录群聊字词并获取排行
37+
- 群精华和群图片缓存(基于腾讯存群图片只存一段时间)
3038

3139
## 有关广播通知
3240

aichat/aichat_test.go

Lines changed: 0 additions & 31 deletions
This file was deleted.

chat_reply/aichat_response.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

cmd/check.go

Lines changed: 0 additions & 69 deletions
This file was deleted.

cmd/settings.go

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)