Skip to main content

A plugin based on NoneBot2 to backup files in qq group.

Project description

nonebot backup group files

✨ 一个基于 NoneBot2 的插件,用于备份 QQ 群文件 ✨

术语介绍

临时文件: 不在文件夹内的文件(因为随手传个视频 大图也会进群文件,并且不在文件夹里的)

用途

备份群文件

会检索是否已备份, 所以请放心使用

会备份到 robot 安装目录/qqgroup/qq 群号

用法

配置文件.env.*中添加:

backup_group=["<QQ群号>"]  # 启用插件的群, 默认为[],代表所有群
backup_command="备份群文件" # 设置插件触发命令
backup_maxsize=300        # 超过多少M的文件不备份, 会在后面提醒哪些没备份

backup_temp_files = True  # 是否备份`临时文件`,默认备份
backup_temp_file_ignore = [".gif", ".png", ".jpg", ".mp4"] # 忽略`临时文件`哪些文件后缀

使用方法

直接打 备份群文件 或者自定义的触发命令即可

TODO

过滤临时文件文件后缀

参考来源

DirectLinker

因为我想备份群文件, 防止炸群, 然后发现只有这一个类似的~ 无奈只能魔改下

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nonebot_plugin_backup-1.0.3-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page