🐛 修复BUG
This commit is contained in:
@@ -2,7 +2,7 @@ import plugin from '../../../lib/plugins/plugin.js'
|
||||
import { update } from '../../other/update.js'
|
||||
import { Version, Plugin_Name } from '../components/index.js'
|
||||
import { puppeteer } from '../model/index.js'
|
||||
export class admin extends plugin {
|
||||
export class Admin extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶版本信息',
|
||||
|
||||
@@ -10,7 +10,7 @@ const Prefix = '(bika|哔咔)'
|
||||
// 命令正则
|
||||
const searchReg = new RegExp(`^#?${Prefix}(类别|作者|高级)?搜索(.*?)(第(${numReg})页)?$`)
|
||||
const comicPageReg = new RegExp(`^#?${Prefix}id(.*?)(第(${numReg})页)?(第(${numReg})话)?$`)
|
||||
export class newBika extends plugin {
|
||||
export class NewBika extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶哔咔',
|
||||
|
||||
@@ -5,7 +5,7 @@ import { common, GroupAdmin as ga } from '../model/index.js'
|
||||
// 全局
|
||||
let temp = {}
|
||||
const ops = ['+', '-']
|
||||
export class NEWCMD extends plugin {
|
||||
export class NewGroupVerify extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶入群验证',
|
||||
@@ -8,7 +8,7 @@ const ROLE_MAP = {
|
||||
owner: '群主',
|
||||
member: '群员'
|
||||
}
|
||||
export class anotice extends plugin {
|
||||
export class NewHandle extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶申请处理',
|
||||
|
||||
@@ -3,7 +3,7 @@ import fs from 'fs'
|
||||
import lodash from 'lodash'
|
||||
import { Data } from '../components/index.js'
|
||||
import { puppeteer } from '../model/index.js'
|
||||
export class yenai_help extends plugin {
|
||||
export class YenaiHelp extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶帮助',
|
||||
|
||||
@@ -4,7 +4,7 @@ import { common } from '../model/index.js'
|
||||
import { Config } from '../components/index.js'
|
||||
|
||||
/** 好友通知 */
|
||||
export class Friends extends plugin {
|
||||
export class NoticeFriends extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶好友通知',
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Config } from '../components/index.js'
|
||||
import moment from 'moment'
|
||||
|
||||
/** 群通知 */
|
||||
export class newgroups extends plugin {
|
||||
export class NoticeGroup extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶群通知',
|
||||
|
||||
@@ -3,7 +3,7 @@ import { segment } from 'oicq'
|
||||
import { common } from '../model/index.js'
|
||||
import { Config } from '../components/index.js'
|
||||
|
||||
export class anotice extends plugin {
|
||||
export class NoticeMessage extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶消息通知',
|
||||
|
||||
@@ -10,7 +10,7 @@ const ROLE_MAP = {
|
||||
}
|
||||
|
||||
/** 群邀请 */
|
||||
export class invitation extends plugin {
|
||||
export class NoticeRequest extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶请求通知',
|
||||
|
||||
@@ -15,7 +15,7 @@ const uidReg = new RegExp(`^#?uid搜图(.*?)(第(${numReg})页)?$`, 'i')
|
||||
const searchUser = new RegExp(`^#?user搜索(.*?)(第(${numReg})页)?$`, 'i')
|
||||
const randomImgReg = new RegExp(`^#?来(${numReg})?张(好(康|看)(的|哒)|hkd|涩图)$|#有内鬼$`)
|
||||
|
||||
export class example extends plugin {
|
||||
export class NewPixiv extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶pixiv',
|
||||
|
||||
@@ -61,7 +61,7 @@ const SEARCH_MAP = {
|
||||
|
||||
const searchReg = new RegExp(`^#?(${lodash.keys(SEARCH_MAP).join('|')})搜索(.*)`)
|
||||
|
||||
export class example extends plugin {
|
||||
export class NewSearch extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶搜索',
|
||||
|
||||
@@ -7,7 +7,7 @@ const SWITCH_ERROR = '主人没有开放这个功能哦(*/ω\*)'
|
||||
let NumReg = '[一壹二两三四五六七八九十百千万亿\\d]+'
|
||||
let seturdReg = new RegExp(`^#(setu|无内鬼)\\s?((${NumReg})张)?$`)
|
||||
let setcdReg = new RegExp(`^#?设置cd\\s?(\\d+)\\s(${NumReg})(s|秒)?$`, 'i')
|
||||
export class sese extends plugin {
|
||||
export class SeSe extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶setu',
|
||||
|
||||
@@ -12,7 +12,7 @@ let uping = false
|
||||
/**
|
||||
* 处理插件更新
|
||||
*/
|
||||
export class update extends plugin {
|
||||
export class Update extends plugin {
|
||||
constructor () {
|
||||
super({
|
||||
name: '椰奶更新插件',
|
||||
|
||||
10
index.js
10
index.js
@@ -42,11 +42,11 @@ for (let i in files) {
|
||||
logger.error(ret[i].reason)
|
||||
continue
|
||||
}
|
||||
let value = ret[i].value
|
||||
for (let f in value) {
|
||||
apps[f] = value[f]
|
||||
}
|
||||
// apps[name] = ret[i].value[Object.keys(ret[i].value)[0]]
|
||||
// let value = ret[i].value
|
||||
// for (let f in value) {
|
||||
// apps[f] = value[f]
|
||||
// }
|
||||
apps[name] = ret[i].value[Object.keys(ret[i].value)[0]]
|
||||
}
|
||||
|
||||
export { apps }
|
||||
|
||||
@@ -6,7 +6,7 @@ const API_ERROR = '❎ 出错辣,请稍后重试'
|
||||
export default new (class {
|
||||
constructor () {
|
||||
this.domain = 'http://api.liaobiao.top/api/bika'
|
||||
this.imgproxy = 'https://proxy.liaobiao.top/'
|
||||
this.imgproxy = null
|
||||
this.imageQuality = 'medium'
|
||||
this.hearder = {
|
||||
headers: {
|
||||
@@ -19,9 +19,9 @@ export default new (class {
|
||||
|
||||
async init () {
|
||||
if (!await redis.get('yenai:bika:directConnection')) {
|
||||
this.imgproxy = 'https://proxy.liaobiao.top/'
|
||||
this.imgproxy = 'https://p.sesepic.top/static/'
|
||||
} else {
|
||||
delete this.imgproxy
|
||||
this.imgproxy = false
|
||||
}
|
||||
this.imageQuality = await redis.get('yenai:bika:imageQuality') ?? 'medium'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user