tags_assign: user_id instead of prefix

This commit is contained in:
Flummi
2021-12-23 10:07:12 +01:00
parent b2f45dc70e
commit bad5a5f7f0
9 changed files with 23 additions and 25 deletions

View File

@ -165,7 +165,7 @@ export default async bot => {
await sql("tags_assign").insert({
tag_id: tag === "sfw" ? 1 : 2,
item_id: insertq,
prefix: `autotagger`
user_id: 7 // user: autotagger
});
}
}

View File

@ -25,7 +25,7 @@ export default async bot => {
}, {
name: "tags add",
call: /^\!tags add \d+ .*/i,
active: true,
active: false,
level: 100,
f: async e => {
const id = +e.args[1];
@ -71,7 +71,7 @@ export default async bot => {
}, {
name: "tags remove",
call: /^\!tags remove \d+ .*/i,
active: true,
active: false,
level: 100,
f: async e => {
const id = +e.args[1];