mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
minor design changes
This commit is contained in:
parent
dc39b90765
commit
86a9ec11bd
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ const { googleVisionSafetyLabels } = require("../../../labscore/api");
|
|||
const { GOOGLE_CLOUD_SAFETY_LABELS, GOOGLE_CLOUD_SAFETY_LABELS_NAMES } = require("../../../labscore/constants");
|
||||
const { getRecentImage } = require("../../../labscore/utils/attachment");
|
||||
const { createEmbed } = require("../../../labscore/utils/embed");
|
||||
const { pill, iconPill } = require("../../../labscore/utils/markdown");
|
||||
const { pill, iconPill, smallPill } = require("../../../labscore/utils/markdown");
|
||||
const { editOrReply } = require("../../../labscore/utils/message");
|
||||
const { STATICS } = require("../../../labscore/utils/statics");
|
||||
|
||||
|
@ -28,7 +28,7 @@ module.exports = {
|
|||
for(const l of Object.keys(label.response.body.labels)){
|
||||
let rating = GOOGLE_CLOUD_SAFETY_LABELS[label.response.body.labels[l]]
|
||||
labels.push([
|
||||
pill(GOOGLE_CLOUD_SAFETY_LABELS_NAMES[l]),
|
||||
smallPill(GOOGLE_CLOUD_SAFETY_LABELS_NAMES[l]),
|
||||
iconPill(rating.icon, rating.name)
|
||||
].join(' '))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue