koishi-plugin-video-parser-all 1.3.9 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1243,6 +1243,8 @@ function apply(ctx, config) {
|
|
|
1243
1243
|
ctx.on('message', async (session) => {
|
|
1244
1244
|
if (!config.enable)
|
|
1245
1245
|
return;
|
|
1246
|
+
if (/^\s*parse\b/i.test(session.content || ''))
|
|
1247
|
+
return;
|
|
1246
1248
|
if (session.subtype === 'file_upload')
|
|
1247
1249
|
return;
|
|
1248
1250
|
if (session.elements?.some(elem => elem.type === 'file' || elem.type === 'folder'))
|
package/package.json
CHANGED