Skip to content

Commit

Permalink
aaa (#1)
Browse files Browse the repository at this point in the history
* refactor: 日志模块大一统,提供全局日志 (sealdice#1062)

* fix(CoC): 单项结果文本被格式化两次, 属性表达式文本赋值顺序 (sealdice#1061)

* fix: 修正大一统日志的问题 (sealdice#1065)

* fix: 通过将日志上传改为异步改善竞争问题 (sealdice#1063)

Issue sealdice#1034

* fix(QQ): 针对NCqq的图像格式的兼容性改进 (sealdice#1066)

Co-authored-by: Xiangze Li <[email protected]>

* feat: 重定向输出panic日志到panic.log,并增加用户友好的日志模块提示。 (sealdice#1067)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build: upgrade go version to 1.22 and make lint happy (sealdice#1072)

Co-authored-by: Xiangze Li <[email protected]>

* ci: add review dog (sealdice#1078)

* style: make lint happy (sealdice#1079)

* ci: remove push event for review dog

(cherry picked from commit 3619e98)

* refactor(config): 迁移 Dice 中的设置项至独立的 struct 中 (sealdice#1070)

Co-authored-by: Xiangze Li <[email protected]>
Co-authored-by: PaienNate <[email protected]>
Co-authored-by: Szzrain <[email protected]>

* feat: 向即将不支持的操作系统弹出不兼容警告 (sealdice#1073)

* ci: add go cache step in lint

(cherry picked from commit 8265bab)

* fix(config): 修复部分配置项的保存不生效问题 (sealdice#1082)

* fix: 在解散群聊的时候,同步dismiss的操作去除群账号链接 (sealdice#1081)

Co-authored-by: JustAnotherID <[email protected]>

* feat(database): 为数据库执行输出 DEBUG 日志 (sealdice#1080)

Co-authored-by: JustAnotherID <[email protected]>

* docs: update README

* ci: fix reviewdog exit mode when it fails

* fix: 修正清理备份的按时间模式不正确生效问题 (sealdice#1084)

* fix: 修正windows系统panic日志无法输出到文件 (sealdice#1087)

* feat(api): 网络质量检查进行三次请求以提高结果准确性 (sealdice#1088)

* feat: 增加多个子模块 vm engine 开关 (sealdice#1086)

* fix: 先攻列表无法删除带有空格的名字的角色 (sealdice#1093)

* feat(deck): `draw list` 文案支持自定义 (sealdice#1097)

* fix(platform): 修正sealchat错误注册wss链接的bug (sealdice#1098)

* style: enable linter forbidigo, deal with old code (Cherrypicked sealdice#1094) (sealdice#1095)

* build(deps): 更新 goja 等多个依赖库 (sealdice#1103)

* fix(config): 修复个别配置项的设置在 UI 不生效的问题 (sealdice#1104)

* refactor(IMSession): 重构自动退群逻辑 (sealdice#1100)

* fix: 增强重构自动退群逻辑的判定机制 (sealdice#1105)

* feat: 为 dnd5e 扩展添加 rah/rch 功能 (sealdice#1107)

* refactor(database): 切换后端数据库操作库至gorm (sealdice#1060)

Co-authored-by: JustAnotherID <[email protected]>

* fix(Helpdoc): 使用帮助文档分组的别名时标题搜索失效 (sealdice#1120)

* fix: 将权限调整为0644以适应容器等特殊情况。 (sealdice#1124)

* build: add Taskfile.yml for task automation with go-task (sealdice#1125)

* fix(cmd-ww): 修复 wod 掷骰时设定的默认成功线和面数不生效 (sealdice#1128)

与旧版本仍有区别: 通过 r XaY 调用时, 通过 ww 设定的默认值无法生效. 旧版本中是生效的.

Fix sealdice#1127

* fix: js重载后指令顺序被打乱的问题 (sealdice#1131)

* fix(adapter): 修复了sealchat触发高频率重连的问题,并将重试次数减少到15次 (sealdice#1134)

* fix: 修复了d3 测试的输出异常,st代骰的输出异常,以及dnd rc改为小写以增强视觉一致性 (sealdice#1132)

* fix: 修复因为简化卡兼容而不能正常执行.st X-(1d4+1)的问题 (sealdice#1133)

* fix: 修复启动时数据库迁移和回收导致的过长启动时间,并对log_items做了特殊处理。同时修复jsReload后插件默认关闭的问题 (sealdice#1136)

* fix: 修正 attrs 表的迁移建表SQL (sealdice#1137)

* docs: Fix 404 link in README (sealdice#1141)

* fix: 修复一些情况下可能的 panic 问题 (sealdice#1140)

* fix: 修复 tg SDK` 会向 `stderr` 输出日志的问题 (sealdice#1139)

* fix(Config): 使 `task:cron` 和 `task:daily` 类型的配置能够正常被加载 (sealdice#1142)

* fix: 使注入了客户端私钥时不输出未找到私钥环境变量的Warn日志 (sealdice#1143)

* fix(Log): 修正由于钩子未命中导致的不能骰点统计 (sealdice#1144)

* feat(js&deck): 调整 JS 插件和牌堆接口中依赖 index 的 api (sealdice#1147)

* feat: 公骰列表后端基础功能 (sealdice#1145)

* fix: 解决插件配置项反序列化类型出错问题 (fix sealdice#1142) (sealdice#1150)

* fix: 第一次启动时部分参数无法正确初始化 (sealdice#1153)

* feat: 添加内置gocq(新版) (sealdice#1123)

* feat(DnD): 支持多轮检定 (sealdice#1152)

Co-authored-by: bugtower100 <[email protected]>

* fix: 修复 `.sn` 指令可以修改内部变量的问题 (sealdice#1161)

* refactor(helpdoc): 抽离帮助文档引擎并修正Arm下无法使用Bleve的问题 (sealdice#1158)

Co-authored-by: bugtower100 <[email protected]>

* feat: change link of adapter-lagrange-helper-go (sealdice#1164)

* feat(Adapter):使用适配器方式解析戳一戳CQ码 (sealdice#1169)

* feat(db): 多数据源支持和部分修正 (sealdice#1166)

Co-authored-by: bugtower100 <[email protected]>
Co-authored-by: fy <[email protected]>

* fix(lagrange): 修正Lagrange新签名地址错误添加多个斜杠的问题

* fix: 修正在无.env文件时导致崩溃的问题 (sealdice#1170)

* imp(backup): 优化了备份时的内存占用 (sealdice#1172)

* fix: 修正SQLITE数据库检查会全部异常FALSE的问题 (sealdice#1173)

* fix: 修正JS引擎崩溃时,错误的代码导致JS Panic未能成功捕获的问题 (sealdice#1174)

* refactor: 添加更友好的提示和判断,并在失败时回滚数据库处理 (sealdice#1175)

Co-authored-by: bugtower100 <[email protected]>

* chore: 修改版本号

* fix: 修复了之前PR引起的空数据库启动闪退问题 (sealdice#1176)

* fix(helpdoc): 修正帮助文档分页符无法使用的问题 (sealdice#1177)

Co-authored-by: bugtower100 <[email protected]>

* fix: 修正拷打狗异常 (sealdice#1179)

* fix: 修正群黑名单且未成功退群时,错误认为是用户黑名单导致炸豹的问题 (sealdice#1180)

* feat(lagrange): 动态拉取sign反代 (sealdice#1181)

* feat: 添加"使用者为管理员立即退群,为普通群员仅拒绝回复"后端逻辑 (sealdice#1183)

* feat: 公骰设置的后端API实现 (sealdice#1184)

* fix: 修正PostgreSQL和MySQL的日志不能正确打印到database.log的问题 (sealdice#1186)

Co-authored-by: bugtower100 <[email protected]>

* fix: 修正GroupInfo取RowsAffected逻辑错误导致部分group_player_info读取失败的问题 (sealdice#1188)

Co-authored-by: bugtower100 <[email protected]>

* fix: 修正使用First的情况下,查询会导致提示报错的问题 (sealdice#1190)

* fix: 修正帮助文档无法加载指令相关帮助文档的问题,并补充部分日志 (sealdice#1192)

* fix: 修复SignInfo空切片的问题 (sealdice#1194)

* feat: delete database.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Firewrk <[email protected]>
Co-authored-by: Xiangze Li <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JustAnotherID <[email protected]>
Co-authored-by: Szzrain <[email protected]>
Co-authored-by: JustAnotherID <[email protected]>
Co-authored-by: 暮星 <[email protected]>
Co-authored-by: fy <[email protected]>
Co-authored-by: Mint Cider <[email protected]>
Co-authored-by: Fripine <[email protected]>
Co-authored-by: bugtower100 <[email protected]>
Co-authored-by: kenichiLyon <[email protected]>
Co-authored-by: 炽热 <[email protected]>
Co-authored-by: bugtower <[email protected]>
Co-authored-by: baiyu-yu <[email protected]>
  • Loading branch information
16 people authored Jan 17, 2025
1 parent a7e5138 commit 6ac129e
Show file tree
Hide file tree
Showing 147 changed files with 7,680 additions and 3,825 deletions.
8 changes: 8 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# DB_TYPE=mysql
# DB_DSN="root:root@tcp(127.0.0.1:3306)/nokoti?charset=utf8mb4&parseTime=True&loc=Local"

# DB_TYPE=postgres
# DB_DSN="postgres://postgres:pinenut666@localhost:5432/nokoti?sslmode=disable"
# SQLITE IS DIFFERENT
DB_TYPE=sqlite
# DATA_DIR="./data/default"
29 changes: 29 additions & 0 deletions .github/workflows/cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Cleanup Caches from Pull Request
on:
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
39 changes: 39 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Review Dog

on:
pull_request_target:
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/reviewdog.yml'

jobs:
review-dog:
permissions:
checks: write
contents: read
pull-requests: write
name: Review Dog
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: go get
- run: go generate ./...
- name: Set Up GolangCI-Lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Run golangci-lint & reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
golangci-lint run | reviewdog -reporter=github-pr-review -f=golangci-lint -filter-mode=nofilter -fail-on-error
37 changes: 37 additions & 0 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test & Lint

on:
push:
paths:
- '**.go'
- 'go.mod'
- 'test-and-lint.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- 'test-and-lint.yml'

jobs:
test-and-lint:
name: Test & Lint
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: go get
- run: go generate ./...

- run: go test -v -race ./...
- run: go vet ./...

- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
if: github.event_name != 'pull_request'
with:
version: 'v1.61.0'
args: '--timeout 9999s'
49 changes: 0 additions & 49 deletions .github/workflows/test_and_lint.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ _help_cache

.vscode/
!.vscode/settings.json
!.vscode/extensions.json
sealdice-lock.lock
Loading

0 comments on commit 6ac129e

Please sign in to comment.