koishi-plugin-cocoyyy-console 1.0.13-beta.0 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -506,7 +506,7 @@ async function randomImgByTag(tag_name, guild_id) {
|
|
|
506
506
|
if (!existed) {
|
|
507
507
|
throw new Error(`not found tag '${tag_name}'!`);
|
|
508
508
|
}
|
|
509
|
-
if (existed.status ==
|
|
509
|
+
if (existed.status == 1) {
|
|
510
510
|
throw new Error(`not found tag '${tag_name}'!`);
|
|
511
511
|
}
|
|
512
512
|
let ImgList = await Img.findAll({
|
|
@@ -580,7 +580,6 @@ __name(endBatchAddImg, "endBatchAddImg");
|
|
|
580
580
|
// src/services/tag_func/tag_service.ts
|
|
581
581
|
async function findTagByName(tag_name, guild_id) {
|
|
582
582
|
const Tag = getTagsModel();
|
|
583
|
-
logger.info("search guild:" + guild_id + ", tag:" + tag_name);
|
|
584
583
|
return await Tag.findOne({
|
|
585
584
|
where: {
|
|
586
585
|
status: 0,
|
|
@@ -1267,7 +1266,7 @@ ${list.map((item) => (0, import_koishi8.h)("at", { id: item })).join(",")}`;
|
|
|
1267
1266
|
exec = await instead_person(session.guildId, source_uid, target_uid);
|
|
1268
1267
|
if (!exec.result)
|
|
1269
1268
|
return `替换rbq失败:${exec.error}`;
|
|
1270
|
-
return `已替换rbq:${source_uid} -> ${target_uid}`;
|
|
1269
|
+
return `已替换rbq:${(0, import_koishi8.h)("at", { id: source_uid })} -> ${(0, import_koishi8.h)("at", { id: target_uid })}`;
|
|
1271
1270
|
});
|
|
1272
1271
|
ctx.command("rbqadd_txt <参数>", "添加自定义文本").action(async ({ session }, ...args) => {
|
|
1273
1272
|
if (!dev_mode) {
|