MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / appendContentSection

Function appendContentSection

src/utils/logEmbeds.js:90–98  ·  view source on GitHub ↗
(description = '', label, content)

Source from the content-addressed store, hash-verified

88}
89
90export function appendContentSection(description = '', label, content) {
91 if (!content) {
92 return description;
93 }
94
95 const base = description?.trim() || '';
96 const section = `**${label}**\n${content}`;
97 return base ? `${base}\n\n${section}`.slice(0, 4096) : section.slice(0, 4096);
98}
99
100export function formatRatingStars(rating) {
101 const numeric = Number(rating);

Callers 1

createLogEmbedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected