Send chat message when joining (yes, branding)

This commit is contained in:
AlexKvazos
2015-04-29 23:25:59 -05:00
parent 31b9fc337b
commit 5daf6c6691
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -6,9 +6,9 @@ module.exports = function($scope, socket) {
$scope.chat = '';
if (window.location.hostname === 'chat.alexkvazos.com') {
socket.emit('chat', { message: 'Connected via web chat client / chat.alexkvazos.me.' });
}
socket.on('bot:spawn', function() {
socket.emit('chat', { message: 'Connected via MinecraftChat - https://chat.alexkvazos.com' });
});
$scope.send = function() {
if ($scope.chat.trim().length > 0) {