mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 05:07:46 +00:00
更新资源map;本地存在资源时不再获取节点加快响应;fix#91
This commit is contained in:
parent
2e8aea4542
commit
a62109a6c0
11 changed files with 21 additions and 17 deletions
|
|
@ -4,7 +4,7 @@ import _ from 'lodash';
|
|||
import { rulePrefix } from '../lib/common.js';
|
||||
import request from '../utils/request.js';
|
||||
|
||||
export class Note extends ZZZPlugin {
|
||||
export class Calendar extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]Calendar',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import _ from 'lodash';
|
|||
import { rulePrefix } from '../lib/common.js';
|
||||
import { getCodeMsg } from '../lib/code.js';
|
||||
|
||||
export class Note extends ZZZPlugin {
|
||||
export class Code extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]Code',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import _ from 'lodash';
|
|||
import { Deadly } from '../model/deadly.js';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
|
||||
export class Abyss extends ZZZPlugin {
|
||||
export class deadly extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]deadly',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import _ from 'lodash';
|
|||
import manage from './manage/index.js';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
|
||||
export class Panel extends ZZZPlugin {
|
||||
export class Manage extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]Manage',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import _ from 'lodash';
|
|||
import { rulePrefix } from '../lib/common.js';
|
||||
import { getMonthly, getMonthlyCollect } from '../lib/monthly.js';
|
||||
|
||||
export class Note extends ZZZPlugin {
|
||||
export class monthly extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]Monthly',
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export class Panel extends ZZZPlugin {
|
|||
retType: 'base64',
|
||||
});
|
||||
const res = await this.reply(image);
|
||||
if (res?.message_id)
|
||||
if (res?.message_id && data.role_icon)
|
||||
await redis.set(`ZZZ:PANEL:IMAGE:${res.message_id}`, data.role_icon, {
|
||||
EX: 3600 * 3,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import common from '../../../lib/common/common.js';
|
|||
import _ from 'lodash';
|
||||
import { rulePrefix } from '../lib/common.js';
|
||||
|
||||
export class Panel extends ZZZPlugin {
|
||||
export class User extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]User',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const displays = [
|
|||
},
|
||||
];
|
||||
|
||||
export class Abyss extends ZZZPlugin {
|
||||
export class Wiki extends ZZZPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
name: '[ZZZ-Plugin]wiki',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue