Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

[feature request] 自动备份 session,每次 gocq 进程启动时,若存在备份且当前没有 session,则自动还原 #602

Open
MistEO opened this issue May 6, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@MistEO
Copy link
Collaborator

MistEO commented May 6, 2023

image

gocq 动不动就把自己 session 删了,好蠢

感觉给他们提大概率没消息,所以来透 mix 了(bushi

@MistEO MistEO changed the title [feature request] 自动备份 session,在每个 gocq 进程启动时,若不存在存在备份且当前不存在 session,则自动还原 [feature request] 自动备份 session,每次 gocq 进程启动时,若存在备份且当前没有 session,则自动还原 May 6, 2023
@mnixry
Copy link
Owner

mnixry commented May 6, 2023

你去查一下GoCQ删session的逻辑……我感觉他应该不会随便删,有可能是这个session用不了了才会删,我用的不多不太清楚他什么逻辑
如果确实是他的删除逻辑太激进了的话可以写一个 但是我没想好怎么写

@mnixry mnixry added the enhancement New feature or request label May 6, 2023
@MistEO
Copy link
Collaborator Author

MistEO commented May 6, 2023

看不懂 go,我自己是用 crontab 跑了个 自动备份 ,经常发现某个账号掉线了,直接把备份的 session 复制回来就能登上了。所以我感觉他就是随便删的x

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants