viewing paste Unknown #26473 | HTML5

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
<!DOCTYPE html>
 
<div id="id01"></div>
var botCommands = [
{
"command": "discord",
"userType": "mod",
"description": "You can join the Derpy Gaming Network discord by clicking this link: https://discord.gg/0nCaX7zRQ4pOgcXI"
},
{
"command": "minuette",
"userType": "user",
"description": "I am a Twitch Chat Bot."
},
{
"command": "twitter",
"userType": "caster",
"description": "Follow me on Twitter! | https://twitter.com/TheDerpySupport"
}
];
 
botFunction(botCommands);
 
function botFunction(arr) {
    var out = "";
    var i;
    for(i = 0; i < arr.length; i++) {
       out += arr[i].command + " | " + arr[i].userType + " | " + arr[i].description +'<br>';
    }
    document.getElementById("id01").innerHTML = out;
}
 
</body>
</html>
Viewed 466 times, submitted by unknown.