Steam-Chat-Bot / node-steam-chat-bot

Simplified interface for a steam chat bot
MIT License
101 stars 35 forks source link

hide private messages from live log #54

Closed antim0 closed 9 years ago

antim0 commented 9 years ago
ws.onmessage=function(event){
nib=event;
//console.log(event);
if(JSON.parse(event.data).roomId===null) return;
if(JSON.parse(event.data).type === 'roomNames')roomNames=JSON.parse(event.data).names
else if(!window.location.hash ||window.location.hash === '#'+JSON.parse(event.data).roomId){
var li=document.createElement('li');
li.innerHTML=(Autolinker?Autolinker.link(format(JSON.parse(event.data))):format(JSON.parse(event.data)));
document.querySelector('#pings').appendChild(li);window.scrollTo(0,document.body.scrollHeight);
};
}
kjsmita6 commented 9 years ago

If you have code you want to be used in the bot, please create a pull request of your fork into the development branch and it will be looked at. Thanks.

antim0 commented 9 years ago

Actually i posted it by request of efreak

kjsmita6 commented 9 years ago

Oh, my bad.

efreak sez ( ^◡^)っ (‿|‿)

Efreak commented 9 years ago

</laziness>