对于“从文件安装插件”插件目录的一些小想法 #4370
fudengming
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
现在的“从文件安装插件”似乎是按照上传的zip文件名作为插件目录安装的,对于
astrbot_plugin_test-v1.0.0.zip一类带version的名称不是很好(会直接导致无法使用),我的想法是:读取metadata中的name,若存在同名插件,则覆盖(或提示一下);若不存在,则看一下name是否合规(只包含字母/数字/下划线),合规就直接拿来当插件目录(或者再检测一下文件名是否合规并且询问用户以哪个为准?),不合规在退回至文件名
不知道这个想法各位大佬觉得怎样?
Beta Was this translation helpful? Give feedback.
All reactions