// The value to be copied
var valor = '{{code}}';
// Creates a temporary element to copy the value
var tempInput = document.createElement('input');
tempInput.value = valor;
document.body.appendChild(tempInput);
// Select and copy the value
tempInput.select();
document.execCommand('copy');
// Remove the temporary element
document.body.removeChild(tempInput);
// Displays the message "Copied!"
alert('Copiado!');



Join the Discord to ask follow-up questions and connect with the community
A place to connect with chatbot enthusiasts. Learn about bot building best practices and discover new content.
5,834 Members
Join