mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 14:19:19 +00:00
优化优先级
This commit is contained in:
parent
dde541e2ef
commit
c8ac53586e
@ -74,9 +74,9 @@ export default class RssPlugin extends plugin {
|
|||||||
* @returns {Promise<*|boolean>}
|
* @returns {Promise<*|boolean>}
|
||||||
*/
|
*/
|
||||||
async autoAddFeed(e) {
|
async autoAddFeed(e) {
|
||||||
|
if (/^#rss/i.test(e.msg.trim())) return false;
|
||||||
const url = e.msg.match(/(https?:\/\/[^\s]+(?:\.atom|\/feed))/i)?.[1];
|
const url = e.msg.match(/(https?:\/\/[^\s]+(?:\.atom|\/feed))/i)?.[1];
|
||||||
if (!url) return false;
|
if (!url) return false;
|
||||||
|
|
||||||
e.msg = `#rss添加 ${url}`;
|
e.msg = `#rss添加 ${url}`;
|
||||||
return await this.addFeed(e);
|
return await this.addFeed(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user