Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chatBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function processMessage() {
if(text.indexOf(' joined the room.') != -1) {
var userJoined = text.slice(0, text.indexOf(' joined the room.'));
postMessage("Hello " + userJoined + " welcome to my stream!");
new Notification( userJoined + " has joined your livecoding chat! :)" );
}
} else {
// var userName = $('a', message).text(); <- That includes all links in a message.
Expand Down