1
0
mirror of https://github.com/FloatTech/zbpdata.git synced 2026-02-15 11:49:35 +09:00

Compare commits

...

28 Commits

Author SHA1 Message Date
Lilyltt
1e64e7cf82 添加字体 包图小白体,千图小兔体 (#40)
添加字体 包图小白体,千图小兔体
2023-04-06 19:08:46 +08:00
源文雨
c484316a63 add ci 2023-04-06 14:32:07 +08:00
Sunist
5b3008d944 添加了解析后的dishes.db数据库文件,总共220条数据 (#39)
* init dishes.db in Dish

* update dishes.db with inner data
2023-04-06 13:34:34 +08:00
源文雨
541c1dec93 优化 zbpwife 2023-03-25 17:23:17 +08:00
源文雨
c6698663d2 优化 zbpwife 2023-03-25 17:10:49 +08:00
源文雨
dc8f73dee4 add zbpwife 2023-03-25 15:40:09 +08:00
源文雨
0d0fa3f435 add zbpwife 2023-03-25 14:27:54 +08:00
源文雨
5a511a6d63 add zbpwife 2023-03-25 14:24:56 +08:00
源文雨
d15c4b8a09 Merge branch 'main' of https://github.com/FloatTech/zbpdata into main 2023-03-25 14:21:52 +08:00
源文雨
095ee1ae8e add zbpwife 2023-03-25 14:21:06 +08:00
苜蓿紫
d640b5f0f1 添加猫啃珠圆体 (#38) 2023-03-20 12:17:36 +08:00
源文雨
b9848c9a4e update to go1.20 2023-02-27 13:59:20 +08:00
himawari
e2a91d6160 添加一言数据库 2023-02-26 12:00:21 +08:00
himawari
4506005ebc 添加一言数据库 2023-02-26 11:50:54 +08:00
MoeMagicMango
e4004f113a Font:Kawaii Font(HachiMaruPop-Regular & Gugi Regular) (#37) 2023-02-17 13:01:43 +08:00
DreamZero
5e0fa81c3b add font 未来荧黑 (#36) 2023-01-11 20:53:08 +08:00
源文雨
bf1d7271ac add font Impact 2023-01-11 16:11:33 +08:00
KafCoppelia
00088d0e74 🍱 添加Fortune资源 (#35)
* add fortune touhou lostword🥳

* add fortune touhou lostword🥳

* 🍱 添加Fortune资源

* 🍱 合并原神资源

Co-authored-by: KafCoppelia <ubuntu@localhost.localdomain>
2023-01-07 14:03:51 +08:00
源文雨
ce8bb59593 Delete a 2022-12-26 13:18:27 +08:00
源文雨
63d476164f Add files via upload 2022-12-26 13:18:12 +08:00
源文雨
9a6fff9f0a Create a 2022-12-26 13:17:52 +08:00
源文雨
0fb2e11a61 Delete kanban.png 2022-12-26 13:16:57 +08:00
源文雨
656b7a3045 Delete icon.jpg 2022-12-26 13:16:43 +08:00
苜蓿紫
3343ea57f4 update ymgal.com to ymgal.games (#34) 2022-12-10 14:43:55 +08:00
源文雨
e8d06b150b edit simai 2022-12-03 13:39:46 +08:00
源文雨
485fc2618e update simai 2022-12-03 11:55:40 +08:00
源文雨
e3cfc94e84 add dict 2022-12-02 15:52:56 +08:00
源文雨
215a217867 add chat vocab 2022-11-29 23:22:59 +08:00
22 changed files with 386930 additions and 5 deletions

29
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: CI
on: [ push, pull_request ]
jobs:
golangci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: '1.20'
- name: Check out code into the Go module directory
uses: actions/checkout@master
with:
submodules: 'true'
fetch-depth: 0
- name: Run Check
run: |
echo "ls ./"
ls
rm -rf Wife/*.go Wife/*.md Wife/.git
echo "ls Wife/"
ls Wife/
go mod init updater
sed -i '1,3d' main.go
go mod tidy
go run main.go -c

View File

@@ -11,18 +11,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
submodules: 'true'
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: '1.20'
- name: Run Updater
env:
REILIA_SPS: ${{ secrets.REILIA_SPS }}
run: |
echo "ls ./"
ls
rm -rf Wife/*.go Wife/*.md Wife/.git
echo "ls Wife/"
ls Wife/
go mod init updater
sed -i '1,3d' main.go
go mod tidy

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "Wife"]
path = Wife
url = https://github.com/FloatTech/zbpwife

349046
Chat/dict.txt Normal file

File diff suppressed because it is too large Load Diff

37822
Chat/simai.yml Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 818 KiB

After

Width:  |  Height:  |  Size: 555 KiB

Binary file not shown.

BIN
Dish/dishes.db Normal file

Binary file not shown.

BIN
Font/BaotuXiaobaiTi.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
Font/Gugi-Regular.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
Font/Impact.ttf Normal file

Binary file not shown.

BIN
Font/MaokenZhuyuanTi.ttf Normal file

Binary file not shown.

BIN
Font/QiantuXiaotuTi.ttf Normal file

Binary file not shown.

BIN
Fortune/Hololive.zip Normal file

Binary file not shown.

Binary file not shown.

BIN
Hitokoto/hitokoto.db Normal file

Binary file not shown.

1
Wife Submodule

Submodule Wife added at dc5f637a4c

Binary file not shown.

27
main.go
View File

@@ -6,6 +6,7 @@ package main
import (
"crypto/md5"
"encoding/hex"
"flag"
"fmt"
"io/fs"
"os"
@@ -13,11 +14,28 @@ import (
"unicode"
"unsafe"
"github.com/FloatTech/floatbox/process"
"github.com/fumiama/go-registry"
"github.com/wdvxdr1123/ZeroBot/utils/helper"
)
func main() {
c := flag.Bool("c", false, "check repo only")
flag.Parse()
es, err := fs.ReadDir(os.DirFS("./"), ".")
if err != nil {
panic(err)
}
for _, es := range es {
if es.IsDir() && es.Name()[0] != '.' {
if !unicode.IsUpper([]rune(es.Name())[0]) {
panic("failed: 文件夹 " + es.Name() + " 首字母必须为大写")
}
}
}
if *c {
return
}
var files []string
fs.WalkDir(os.DirFS("./"), ".", func(path string, d fs.DirEntry, err error) error {
if err != nil {
@@ -40,23 +58,24 @@ func main() {
*(*uintptr)(unsafe.Add(unsafe.Pointer(&md5s[i]), unsafe.Sizeof(uintptr(0)))) = uintptr(16)
}
r := registry.NewRegedit("reilia.fumiama.top:32664", "", "fumiama", os.Getenv("REILIA_SPS"))
err := r.Connect()
err = r.Connect()
if err != nil {
panic(err)
}
for i, fn := range files {
for c := 0; c < 5; c++ {
for c := 0; c < 16; c++ {
err = r.Set("data/"+fn, md5s[i])
fmt.Println("set", "data/"+fn, "=", hex.EncodeToString(helper.StringToBytes(md5s[i])))
if err == nil {
break
}
if c >= 4 {
panic("ERROR:" + err.Error() + "max retry times exceeded")
if c >= 15 {
panic("ERROR:" + err.Error() + ", max retry times exceeded")
} else {
fmt.Println("ERROR:", err, ", retry times:", c)
}
_ = r.Close()
process.SleepAbout1sTo2s()
err = r.Connect()
if err != nil {
panic(err)