Generation

generate functionSat, 18 Mar 2023

Una función para centrar el texto de un message.channel.send

function center(text) { let spaces = Math.floor((50 - text.length) / 2) let centeredText = ' '.repeat(spaces) + text return centeredText } message.channel.send(center("Hola"))

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant