🐛 #全部赞我bug

This commit is contained in:
yeyang
2024-04-06 00:10:03 +08:00
parent 67c0c5c9e3
commit de2da06e09
2 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,6 @@ export class Fun extends plugin {
}
]
})
if (e?.message?.[0]?.text == "#全部赞我") { this.thumbUp(e) }
}
/**
@@ -83,7 +82,7 @@ export class Fun extends plugin {
if (!(amount >= 0.01 && amount <= 999999999999.99)) {
return e.reply("数字大小超出限制支持范围为0.01~999999999999.99")
}
e.reply([segment.record(`https://mm.cqu.cc/share/zhifubaodaozhang/mp3/${amount}.mp3`)])
e.reply([ segment.record(`https://mm.cqu.cc/share/zhifubaodaozhang/mp3/${amount}.mp3`) ])
}
/**

View File

@@ -4,7 +4,7 @@ import { Config } from "../components/index.js"
import { successImgs, faildsImgs } from "../constants/fun.js"
export class ThumbUp extends plugin {
constructor () {
constructor (e) {
super({
name: "椰奶点赞",
event: "message",
@@ -16,6 +16,7 @@ export class ThumbUp extends plugin {
}
]
})
if (e?.message?.[0]?.text == "#全部赞我") { this.thumbUp(e) }
}
/**
@@ -66,7 +67,7 @@ export class ThumbUp extends plugin {
}
let successMsg = `${isSelf ? "你" : userId}${_do}${n}下哦,记得回我~ ${isFriend ? "" : `(如${_do}失败请添加好友)`}`
const avatar = `https://q1.qlogo.cn/g?b=qq&s=100&nk=${userId}`
const successFn = _.sample(["ganyu", "zan"])
const successFn = _.sample([ "ganyu", "zan" ])
/** 判断点赞是否成功 */
let msg = n > 0