Skip to content

Commit

Permalink
提交,
Browse files Browse the repository at this point in the history
  • Loading branch information
xiwangly2 committed Jan 21, 2025
1 parent cdf6507 commit 754b5e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ venv/*
# 数据库
xwbot.db3
# 测试文件
test/*
test/*
.idea/dataSources.xml
16 changes: 16 additions & 0 deletions config/go-cqhttp_config_example.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 默认中间件锚点
default-middlewares: &default
# 访问密钥, 强烈推荐在公网的服务器设置
access-token: ''
# 事件过滤器文件目录
filter: ''
# API限速设置
# 该设置为全局生效
# 原 cqhttp 虽然启用了 rate_limit 后缀, 但是基本没插件适配
# 目前该限速设置为令牌桶算法, 请参考:
# https://baike.baidu.com/item/%E4%BB%A4%E7%89%8C%E6%A1%B6%E7%AE%97%E6%B3%95/6597000?fr=aladdin
rate-limit:
enabled: false # 是否启用限速
frequency: 1 # 令牌回复频率, 单位秒
bucket: 1 # 令牌桶大小

# 连接服务列表
servers:
# 添加方式,同一连接方式可添加多个,具体配置说明请查看文档
Expand Down

0 comments on commit 754b5e1

Please sign in to comment.