Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init-things
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
init-things
Commits
b1878850
Commit
b1878850
authored
Oct 06, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
c1ac8ada
Pipeline
#6118
failed with stages
in 43 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
0 deletions
+111
-0
things/gocq-windows/bundle.sh
things/gocq-windows/bundle.sh
+7
-0
things/gocq-windows/config.yml
things/gocq-windows/config.yml
+92
-0
things/gocq-windows/launch.bat
things/gocq-windows/launch.bat
+12
-0
No files found.
things/gocq-windows/bundle.sh
0 → 100755
View file @
b1878850
#!/bin/bash
set
-x
set
-o
errexit
wget
-O
go-cqhttp.exe https://github.com/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_windows_amd64.exe
7z a
-mx9
target.7z config.yml launch.bat koishi.exe go-cqhttp.exe
"
$@
"
things/gocq-windows/config.yml
0 → 100644
View file @
b1878850
# go-cqhttp 默认配置文件
account
:
# 账号相关
uin
:
2222222222
# QQ账号
password
:
'
'
# 密码为空时使用扫码登录
encrypt
:
false
# 是否开启密码加密
status
:
0
# 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
relogin
:
# 重连设置
delay
:
3
# 首次重连延迟, 单位秒
interval
:
3
# 重连间隔
max-times
:
0
# 最大重连次数, 0为无限制
# 是否使用服务器下发的新地址进行重连
# 注意, 此设置可能导致在海外服务器上连接情况更差
use-sso-address
:
true
heartbeat
:
# 心跳频率, 单位秒
# -1 为关闭心跳
interval
:
5
message
:
# 上报数据类型
# 可选: string,array
post-format
:
string
# 是否忽略无效的CQ码, 如果为假将原样发送
ignore-invalid-cqcode
:
false
# 是否强制分片发送消息
# 分片发送将会带来更快的速度
# 但是兼容性会有些问题
force-fragment
:
false
# 是否将url分片发送
fix-url
:
false
# 下载图片等请求网络代理
proxy-rewrite
:
'
'
# 是否上报自身消息
report-self-message
:
false
# 移除服务端的Reply附带的At
remove-reply-at
:
false
# 为Reply附加更多信息
extra-reply-data
:
false
# 跳过 Mime 扫描, 忽略错误数据
skip-mime-scan
:
false
output
:
# 日志等级 trace,debug,info,warn,error
log-level
:
warn
# 日志时效 单位天. 超过这个时间之前的日志将会被自动删除. 设置为 0 表示永久保留.
log-aging
:
15
# 是否在每次启动时强制创建全新的文件储存日志. 为 false 的情况下将会在上次启动时创建的日志文件续写
log-force-new
:
true
# 是否启用 DEBUG
debug
:
false
# 开启调试模式
# 默认中间件锚点
default-middlewares
:
&default
# 访问密钥, 强烈推荐在公网的服务器设置
access-token
:
'
JdkTapiX8sjKmeYeIT4qt0DIhtCa0fdxa'
# 事件过滤器文件目录
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
# 令牌桶大小
database
:
# 数据库相关设置
leveldb
:
# 是否启用内置leveldb数据库
# 启用将会增加10-20MB的内存占用和一定的磁盘空间
# 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
enable
:
true
# 连接服务列表
servers
:
# 添加方式,同一连接方式可添加多个,具体配置说明请查看文档
#- http: # http 通信
#- ws: # 正向 Websocket
#- ws-reverse: # 反向 Websocket
#- pprof: #性能分析服务器
# 正向WS设置
-
ws
:
# 正向WS服务器监听地址
host
:
127.0.0.1
# 正向WS服务器监听端口
port
:
6700
middlewares
:
<<
:
*default
# 引用默认中间件
things/gocq-windows/launch.bat
0 → 100644
View file @
b1878850
@echo
off
set
ONEBOT_HOST
=
ws
://127.0.0.1:6700
set
ONEBOT_ID
=
2222222222
set
ONEBOT_TOKEN
=
JdkTapiX8sjKmeYeIT4qt0DIhtCa0fdxa
set
COMMAND_PREFIX
=
.
set
ADMIN_ID
=
11111111
set
KZ_DATA
=
data
.txt
set
KZ_ADMIN
=
11111111
set
KZ_ENCODING
=
utf8
app
.exe
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment