mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-10-14 05:39:18 +00:00
fix:修复config查询问题
This commit is contained in:
parent
b8f6f737e9
commit
262ef938c2
@ -117,7 +117,7 @@ export default class FanqiePlugin extends plugin {
|
||||
* 解析网页链接中的 book_id
|
||||
*/
|
||||
async handleFanqieLink(e) {
|
||||
if (!ConfigControl.get()?.fanqie) {
|
||||
if (!ConfigControl.get()?.config?.fanqie) {
|
||||
return;
|
||||
}
|
||||
const message = e.msg.trim();
|
||||
@ -140,7 +140,7 @@ export default class FanqiePlugin extends plugin {
|
||||
* 使用 #fq下载 命令下载
|
||||
*/
|
||||
async downloadByBookId(e) {
|
||||
if (!ConfigControl.get()?.fanqie) {
|
||||
if (!ConfigControl.get()?.config?.fanqie) {
|
||||
return;
|
||||
}
|
||||
const bookId = e.msg.replace(/^#?fq下载/, '').trim();
|
||||
|
@ -20,7 +20,7 @@ export default class ChuochuoPlugin extends plugin {
|
||||
}
|
||||
|
||||
async chuoyichuo(e) {
|
||||
if (!ConfigControl.get()?.poke) {
|
||||
if (!ConfigControl.get()?.config?.poke) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ export default class RssPlugin extends plugin {
|
||||
*/
|
||||
async autoAddFeed(e) {
|
||||
//if (/^#rss/i.test(e.msg.trim())) return false;
|
||||
if (!ConfigControl.get()?.rss) {
|
||||
if (!ConfigControl.get()?.config?.rss) {
|
||||
return;
|
||||
}
|
||||
const url = e.msg.match(/(https?:\/\/\S+(?:\.atom|\/feed))/i)?.[1];
|
||||
|
@ -45,7 +45,7 @@ export class ZWA extends plugin {
|
||||
}
|
||||
|
||||
async www(e) {
|
||||
if (!ConfigControl.get()?.zwa) {
|
||||
if (!ConfigControl.get()?.config?.zwa) {
|
||||
return;
|
||||
}
|
||||
const currentHour = getCurrentHour();
|
||||
@ -108,8 +108,8 @@ export class ZWA extends plugin {
|
||||
}
|
||||
|
||||
async zzz(e) {
|
||||
logger.info(ConfigControl.get());
|
||||
if (!ConfigControl.get()?.zwa) {
|
||||
//logger.info(ConfigControl.get());
|
||||
if (!ConfigControl.get()?.config?.zwa) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@ export class ZWA extends plugin {
|
||||
}
|
||||
}
|
||||
async wuan(e) {
|
||||
if (!ConfigControl.get()?.zwa) {
|
||||
if (!ConfigControl.get()?.config?.zwa) {
|
||||
return;
|
||||
}
|
||||
if (e.isMaster) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user