Skip to content

Mod welcome message

Philip Nicolcev edited this page Nov 8, 2013 · 2 revisions

Open Custom.js and add the following to the end of the file:

ajaxChat.customInitialize = function() {
	ajaxChat.addChatBotMessageToChatList('Welcome to our chat. Please follow the rules.');
}

That's it! It will display the welcome text only to the people who enter your chat.

Obviously you can change the text to say whatever you want, but make sure you do not use apostrophes ' in your text unless you escape them (by placing a \ before the apostrophe in your text).