加入图片缓存,每次从文件系统中提取相关的图片,加载成bytes,后续使用时直接从缓存中提取。减少IO读取次数,提高发送性能
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[XiurenImage]
|
||||
enable = true
|
||||
image_folder = '/mnt/nfs_share'
|
||||
cache_size = 10 # 内存缓存大小,默认5张图片
|
||||
command = ["图来", "秀人", "美图", "随机图片"]
|
||||
command-format = """
|
||||
🖼️秀人图片指令:
|
||||
|
||||
Reference in New Issue
Block a user