✨ 修改搜图正则防止误触发,删除头衔文案
This commit is contained in:
13
CHANGELOG.md
13
CHANGELOG.md
@@ -1,10 +1,15 @@
|
||||
# 1.2.3
|
||||
# 1.2.4
|
||||
|
||||
* 修改**搜图搜番**正则防止误触发
|
||||
* 删除`申请头衔`文案
|
||||
* 修改部分文案
|
||||
|
||||
|
||||
|
||||
# 1.2.1 ~ 1.2.3
|
||||
|
||||
* 优化群违禁词匹配,增加违禁词添加人、添加时间
|
||||
* 优化群字符列表,字符id显示
|
||||
|
||||
# 1.2.1 ~ 1.2.2
|
||||
|
||||
* 新增可选依赖项`puppeteer-extra``puppeteer-extra-plugin-stealth`
|
||||
* 更新Puppeteer 请求 ascii2d 绕过 cf js challenge
|
||||
* 新增`#加精`
|
||||
|
||||
@@ -162,7 +162,7 @@ export class NewBika extends plugin {
|
||||
return false
|
||||
}
|
||||
if (!await common.limit(e.user_id, 'bika', Config.bika.limit)) {
|
||||
e.reply('[bika]您已达今日次数上限', true, { at: true })
|
||||
e.reply('您已达今日「bika」次数上限', true, { at: true })
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
@@ -3,7 +3,6 @@ import moment from 'moment'
|
||||
import { Config } from '../../components/index.js'
|
||||
import { common, GroupAdmin as Ga, puppeteer, QQApi, GroupBannedWords } from '../../model/index.js'
|
||||
import cronValidate from '../../tools/cronValidate.js'
|
||||
import { groupTitleMsg } from '../../constants/msg.js'
|
||||
import { Time_unit } from '../../constants/other.js'
|
||||
// API请求错误文案
|
||||
const API_ERROR = '❎ 出错辣,请稍后重试'
|
||||
@@ -322,7 +321,7 @@ export class GroupAdmin extends plugin {
|
||||
|
||||
if (!Title) return e.reply('什么"(º Д º*)!没有头衔,哼把你的头衔吃掉!!!', true)
|
||||
|
||||
e.reply(_.sample(groupTitleMsg), true)
|
||||
e.reply(`已将你的头衔更换为「${Title}」`, true)
|
||||
}
|
||||
|
||||
// 字符列表
|
||||
|
||||
@@ -9,25 +9,26 @@ export class NewPicSearch extends plugin {
|
||||
priority: 2000,
|
||||
rule: [
|
||||
{
|
||||
reg: '^#?(椰奶)?(以图)?搜图.*$',
|
||||
reg: '^#?(椰奶)?(以图)?搜图$',
|
||||
fnc: 'SauceNAO'
|
||||
},
|
||||
{
|
||||
reg: /^#?(SauceNAO|sn)搜图.*$/i,
|
||||
reg: /^#?(SauceNAO|sn)搜图$/i,
|
||||
fnc: 'SauceNAO'
|
||||
},
|
||||
{
|
||||
reg: '^#?(椰奶)?(以图)?搜番.*$',
|
||||
reg: /^#?(椰奶|WhatAnime|wa)?(以图)?搜番$/i,
|
||||
fnc: 'WhatAnime'
|
||||
},
|
||||
{
|
||||
reg: /^#?(Ascii2D|ac)搜图$/i,
|
||||
fnc: 'Ascii2D'
|
||||
},
|
||||
{
|
||||
reg: /^#设置SauceNAOApiKey.*$/i,
|
||||
fnc: 'UploadSauceNAOKey'
|
||||
},
|
||||
{
|
||||
reg: /^#?(Ascii2D|ac)搜图.*$/i,
|
||||
fnc: 'Ascii2D'
|
||||
}
|
||||
|
||||
]
|
||||
})
|
||||
}
|
||||
@@ -91,7 +92,7 @@ export class NewPicSearch extends plugin {
|
||||
return false
|
||||
}
|
||||
if (!await common.limit(e.user_id, 'picSearch', limit)) {
|
||||
e.reply('[PicSearch]您已达今日次数上限', true, { at: true })
|
||||
e.reply('您已达今日「搜图搜番」次数上限', true, { at: true })
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
@@ -255,7 +255,7 @@ export class NewPixiv extends plugin {
|
||||
return false
|
||||
}
|
||||
if (!await common.limit(e.user_id, 'pixiv', Config.pixiv.limit)) {
|
||||
e.reply('[Pixiv]您已达今日次数上限', true, { at: true })
|
||||
e.reply('您已达今日「Pixiv」次数上限', true, { at: true })
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
@@ -109,7 +109,7 @@ export class SeSe extends plugin {
|
||||
return false
|
||||
}
|
||||
if (!await common.limit(e.user_id, 'setu', Config.setu.limit)) {
|
||||
e.reply('[setu]您已达今日次数上限', true, { at: true })
|
||||
e.reply('您已达今日「setu」次数上限', true, { at: true })
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user