mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-06 15:20:22 +00:00
[mcfish] Add one click selling (#894)
* [mcfish] Add one click selling Add one click waste selling function to mcfish plugin 给mcfish 添加一键售卖垃圾功能 * 🔖 v1.7.8 * chore: del aipaint due to 过气 * chore: del baidu due to 使えない * chore: del cangtoushi due to 使えない * chore: del dress due to 删库 * chore: del heisi due to 跑路 * chore: del jiami due to 跑路 * chore: del jiuejuezi due to 跑路 * chore: del quan due to 跑路 * chore: del wangyiyun due to 跑路 * chore: del wenben due to 跑路 * fix: atri 早安 conflict with sleep_manage & add 回应表情 * fix: version limit * fix: version limit * fix: version limit * chore: update deps * fix(searcher): forward node * 💩👌 make lint happy * revert: fix(searcher): forward node * fix(github): get api method * chore: del imgfinder due to 跑路 * optimize: saucenao head * chore: tidy * chore: del vtbxxx due to 跑路 * fix(drawlots): draw gif noise * fix(emojimix): connection issue in some regions * 💩👌 make lint happy * fix(drawlots): draw gif noise * fix(emojimix): add more logs * feat: add uwu logo * optimize: README uwu icon * chore: update deps * optimize: 赞我 触发失败时静默 * fix: update img pool * fix: imgpool on LLOB * fix(manager): 回应表情 * ✨ 修复b站小程序解析 (#895) * add control for saucenao & bilibili_parse (#839) * add control for saucenao&bilibili_parse * not only group * update control * reuse variables --------- Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> * fix(bilibili): parse config * fix(manager): 撤回 * fix: reply face * fix: reply face * 💩👌 make lint happy * feat: add option `-mirror` * chore: update deps * chore: update deps * chore: update deps * chore: update deps * chore: update deps * chore: update deps * chore: update deps * 🔖 v1.8.0 * revert: emojimix http2 * 📝 update README * [mcfish] Add one click selling Add one click waste selling function to mcfish plugin 给mcfish 添加一键售卖垃圾功能 * Update robbery plugin Update robbery plugin 修改打劫功能 --------- Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> Co-authored-by: himawari <54976075+guohuiyuan@users.noreply.github.com> Co-authored-by: 莫思潋 <55676105+shudorcl@users.noreply.github.com>
This commit is contained in:
@@ -131,7 +131,7 @@ var (
|
||||
DisableOnDefault: false,
|
||||
Brief: "钓鱼",
|
||||
Help: "一款钓鱼模拟器\n----------指令----------\n" +
|
||||
"- 钓鱼看板/钓鱼商店\n- 购买xxx\n- 购买xxx [数量]\n- 出售xxx\n- 出售xxx [数量]\n" +
|
||||
"- 钓鱼看板/钓鱼商店\n- 购买xxx\n- 购买xxx [数量]\n- 出售xxx\n- 出售xxx [数量]\n- 出售所有垃圾\n" +
|
||||
"- 钓鱼背包\n- 装备[xx竿|三叉戟|美西螈]\n- 附魔[诱钓|海之眷顾]\n- 修复鱼竿\n- 合成[xx竿|三叉戟]\n- 消除[绑定|宝藏]诅咒\n- 消除[绑定|宝藏]诅咒 [数量]\n" +
|
||||
"- 进行钓鱼\n- 进行n次钓鱼\n- 当前装备概率明细\n" +
|
||||
"规则V" + version + ":\n" +
|
||||
@@ -530,6 +530,26 @@ func (sql *fishdb) getNumberFor(uid int64, thing string) (number int, err error)
|
||||
return
|
||||
}
|
||||
|
||||
// 获取用户的某类物品信息
|
||||
func (sql *fishdb) getUserTypeInfo(uid int64, thingType string) (thingInfos []article, err error) {
|
||||
name := strconv.FormatInt(uid, 10) + "Pack"
|
||||
sql.Lock()
|
||||
defer sql.Unlock()
|
||||
userInfo := article{}
|
||||
err = sql.db.Create(name, &userInfo)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if !sql.db.CanFind(name, "where Type = '"+thingType+"'") {
|
||||
return
|
||||
}
|
||||
err = sql.db.FindFor(name, &userInfo, "where Type = '"+thingType+"'", func() error {
|
||||
thingInfos = append(thingInfos, userInfo)
|
||||
return nil
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
/*********************************************************/
|
||||
/************************商店相关函数***********************/
|
||||
/*********************************************************/
|
||||
|
||||
Reference in New Issue
Block a user