mirror of
https://github.com/FloatTech/zbpdata.git
synced 2026-02-15 11:49:35 +09:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc8f73dee4 | ||
|
|
0d0fa3f435 | ||
|
|
5a511a6d63 | ||
|
|
d15c4b8a09 | ||
|
|
095ee1ae8e | ||
|
|
d640b5f0f1 | ||
|
|
b9848c9a4e | ||
|
|
e2a91d6160 | ||
|
|
4506005ebc | ||
|
|
e4004f113a | ||
|
|
5e0fa81c3b | ||
|
|
bf1d7271ac | ||
|
|
00088d0e74 | ||
|
|
ce8bb59593 | ||
|
|
63d476164f | ||
|
|
9a6fff9f0a | ||
|
|
0fb2e11a61 | ||
|
|
656b7a3045 | ||
|
|
3343ea57f4 | ||
|
|
e8d06b150b | ||
|
|
485fc2618e | ||
|
|
e3cfc94e84 | ||
|
|
215a217867 |
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -11,18 +11,25 @@ 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 Wife/go.* Wife/*.go Wife/*.md
|
||||
mv Wife/wives/*.{jpg,png} Wife/
|
||||
rm -rf Wife/wives 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
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "Wife"]
|
||||
path = Wife
|
||||
url = https://github.com/FloatTech/zbpwife
|
||||
349046
Chat/dict.txt
Normal file
349046
Chat/dict.txt
Normal file
File diff suppressed because it is too large
Load Diff
37822
Chat/simai.yml
Normal file
37822
Chat/simai.yml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Control/icon.jpg
BIN
Control/icon.jpg
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 |
BIN
Diana/text.db
BIN
Diana/text.db
Binary file not shown.
BIN
Font/GlowSansSC-Normal-ExtraBold.ttf
Normal file
BIN
Font/GlowSansSC-Normal-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
Font/Gugi-Regular.ttf
Normal file
BIN
Font/Gugi-Regular.ttf
Normal file
Binary file not shown.
BIN
Font/HachiMaruPop-Regular.ttf
Normal file
BIN
Font/HachiMaruPop-Regular.ttf
Normal file
Binary file not shown.
BIN
Font/Impact.ttf
Normal file
BIN
Font/Impact.ttf
Normal file
Binary file not shown.
BIN
Font/MaokenZhuyuanTi.ttf
Normal file
BIN
Font/MaokenZhuyuanTi.ttf
Normal file
Binary file not shown.
BIN
Fortune/Hololive.zip
Normal file
BIN
Fortune/Hololive.zip
Normal file
Binary file not shown.
BIN
Fortune/原神.zip
BIN
Fortune/原神.zip
Binary file not shown.
BIN
Hitokoto/hitokoto.db
Normal file
BIN
Hitokoto/hitokoto.db
Normal file
Binary file not shown.
1
Wife
Submodule
1
Wife
Submodule
Submodule Wife added at abcf931871
BIN
Ymgal/ymgal.db
BIN
Ymgal/ymgal.db
Binary file not shown.
8
main.go
8
main.go
@@ -13,6 +13,7 @@ import (
|
||||
"unicode"
|
||||
"unsafe"
|
||||
|
||||
"github.com/FloatTech/floatbox/process"
|
||||
"github.com/fumiama/go-registry"
|
||||
"github.com/wdvxdr1123/ZeroBot/utils/helper"
|
||||
)
|
||||
@@ -45,18 +46,19 @@ func main() {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user