diff --git a/commands/message/google/labels.js b/commands/message/google/labels.js index 1a77b62..fde32c3 100644 --- a/commands/message/google/labels.js +++ b/commands/message/google/labels.js @@ -1,7 +1,7 @@ const { googleVisionLabels } = require("../../../labscore/api"); const { getRecentImage } = require("../../../labscore/utils/attachment"); const { createEmbed } = require("../../../labscore/utils/embed"); -const { pill } = require("../../../labscore/utils/markdown"); +const { pill, smallPill } = require("../../../labscore/utils/markdown"); const { editOrReply } = require("../../../labscore/utils/message"); const { STATICS } = require("../../../labscore/utils/statics"); @@ -25,7 +25,7 @@ module.exports = { let labels = [] for(const l of label.response.body.labels){ - labels.push(pill(`${l.score.toString().substr(2,2)}.${l.score.toString().substr(3,1)}%`) + ' ​ ​' + pill(l.name)) + labels.push(smallPill(`${l.score.toString().substr(2,2)}.${l.score.toString().substr(3,1)}%`) + ' ​ ​' + pill(l.name)) } return editOrReply(context, { embeds: [createEmbed("default", context, { diff --git a/commands/message/google/safetylabels.js b/commands/message/google/safetylabels.js index 13cf436..6923b81 100644 --- a/commands/message/google/safetylabels.js +++ b/commands/message/google/safetylabels.js @@ -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(' ​ ​')) }