mirror of
https://github.com/sern-handler/automata
synced 2026-06-21 23:32:18 +00:00
4 lines
230 B
TypeScript
4 lines
230 B
TypeScript
// definitely not stolen from discord.js :clueless:
|
|
export function codeBlock(language: string, content?: string): string {
|
|
return content === undefined ? `\`\`\`\n${language}\n\`\`\`` : `\`\`\`${language}\n${content}\n\`\`\``;
|
|
} |