mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
blame discord
This commit is contained in:
parent
b4ecb8cb98
commit
fe40a3c449
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ function renderPerspectiveAnalysis(payload, input, type){
|
|||
function perspectiveAnalysisEmbed(context, payload, input, type){
|
||||
let score = payload.scores[type];
|
||||
return createEmbed("default", context, {
|
||||
description: `${iconPill("agreements", `${type.substr(0, 1).toUpperCase()}${type.substr(1, type.length).toLowerCase().replace(/_/g, ' ')}`)} ${smallPill(`${score.toString().substr(2, 2)}.${score.toString().substr(3, 1)}%`)} ${codeblock("ansi", [stringwrap(renderPerspectiveAnalysis(payload,input,type), 2000)])}`,
|
||||
// the 1000 chars length limit is stupid, blame discord
|
||||
description: `${iconPill("agreements", `${type.substr(0, 1).toUpperCase()}${type.substr(1, type.length).toLowerCase().replace(/_/g, ' ')}`)} ${smallPill(`${score.toString().substr(2, 2)}.${score.toString().substr(3, 1)}%`)} ${codeblock("ansi", [stringwrap(renderPerspectiveAnalysis(payload,input,type), 1000)])}`,
|
||||
footer: {
|
||||
iconUrl: STATICS.perspectiveapi,
|
||||
text: `Perspective • ${context.application.name}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue