// later, put this in repo. And, on repo site, add a form that helps create the bot for others to use
var sa_chatFeed = document.getElementById("chat");
var sa_abilities = {
"thank you": function() {
sendMessage("Always at your service, master.");
}
};
function sa_isMaster(message) {
if(message.userID == 136389) { // my chat user id
return true;
}
}
function sa_getLastMessage() {
var e = sa_chatFeed.lastElementChild; // last child because some msgs are grouped under 1 element