mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 06:09: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>}
|
||||
*/
|
||||
async autoAddFeed(e) {
|
||||
if (/^#rss/i.test(e.msg.trim())) return false;
|
||||
const url = e.msg.match(/(https?:\/\/[^\s]+(?:\.atom|\/feed))/i)?.[1];
|
||||
if (!url) return false;
|
||||
|
||||
e.msg = `#rss添加 ${url}`;
|
||||
return await this.addFeed(e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user