Skip to content

Commit

Permalink
added /users command
Browse files Browse the repository at this point in the history
  • Loading branch information
zoo1 committed Aug 18, 2015
1 parent 1e02514 commit 3b42557
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ function handleInput() {
$('#message').val('');
break;

case 'users':
$('#user').click();
break;

case 'reconnect':
socket.close();
break;
Expand Down
2 changes: 2 additions & 0 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
<br>/me or /em
<br>/shrug
<br>/name
<br>/users
<br>/help
<br>/clear
<br>/reconnect
Expand All @@ -138,6 +139,7 @@
<br>Sends <i>[message]</i> in italics
<br>Sends <i>[message]</i> followed by '¯\_(ツ)_/¯'
<br>Changes your name to <i>[name]</i>
<br>Shows users on the server
<br>Shows this help dialog
<br>Clears your chat history
<br>Reconnects to the server
Expand Down

0 comments on commit 3b42557

Please sign in to comment.