修改状态
This commit is contained in:
@@ -24,7 +24,6 @@ export class invitation extends plugin {
|
||||
Bot.on('request.group.invite', async (e) => {
|
||||
let msg = ''
|
||||
if (!Config.Notice.groupInviteRequest) return
|
||||
// if (!await redis.get(`yenai:notice:groupInviteRequest`)) return
|
||||
|
||||
if (cfg.masterQQ.includes(e.user_id)) return
|
||||
logger.mark("[椰奶]邀请机器人进群")
|
||||
@@ -49,7 +48,6 @@ Bot.on('request.group.invite', async (e) => {
|
||||
//好友申请
|
||||
Bot.on('request.friend', async (e) => {
|
||||
if (!Config.Notice.friendRequest) return
|
||||
// if (!await redis.get(`yenai:notice:friendRequest`)) return
|
||||
logger.mark("[椰奶]好友申请")
|
||||
let msg = [
|
||||
segment.image(`https://q1.qlogo.cn/g?b=qq&s=100&nk=${e.user_id}`),
|
||||
|
||||
@@ -76,7 +76,7 @@ export class sese extends plugin {
|
||||
}
|
||||
|
||||
async setu(e) {
|
||||
if (!await redis.get(`yenai:notice:sese`)) return;
|
||||
if (!Config.Notice.sese) return
|
||||
|
||||
let cds = await this.getcd(e)
|
||||
|
||||
@@ -96,7 +96,7 @@ export class sese extends plugin {
|
||||
|
||||
//tag搜图
|
||||
async setutag(e) {
|
||||
if (!await redis.get(`yenai:notice:sese`)) return;
|
||||
if (!Config.Notice.sese) return
|
||||
|
||||
let cds = await this.getcd(e)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export class example extends plugin {
|
||||
|
||||
|
||||
async state(e) {
|
||||
if (!/椰奶/.test(e.msg) && !await redis.get("yenai:notice:state")) {
|
||||
if (!/椰奶/.test(e.msg) && !Config.Notice.state) {
|
||||
return false;
|
||||
}
|
||||
//现在的时间戳(秒)
|
||||
|
||||
Reference in New Issue
Block a user