AndrewBelt / hack.chat

a minimal, distraction-free chat application
https://hack.chat/
MIT License
2.39k stars 336 forks source link

Commands confusion #141

Closed Xfeature closed 7 years ago

Xfeature commented 7 years ago

Hi,

I've only just started playing around with hack.chat (very nice by the way, massive well done all)

Do you have a list of commands that can be run and how to run them please.

I noticed that you can login as admin with admin#passwd but have no idea what this enables.

AndrewBelt commented 7 years ago

https://github.com/AndrewBelt/hack.chat/blob/master/server.js#L148 here is a comprehensive list of commands.

Xfeature commented 7 years ago

Thank you so much for the quick reply, once again great simple chat :) x

Xfeature commented 7 years ago

sorry i see the commands section but how do you run them? .... in the browser window or server side? i tried running :stats etc but it didnt work and im logged into a chat as admin

AndrewBelt commented 7 years ago

You run them in the browser. If you are admin, for example, you can broadcast a message by opening the web terminal (Ctrl+Shift+K I think?) and typing

send({cmd: 'broadcast', text: 'Hello world'})

Or you can ban with send({cmd: 'ban', nick: 'someone'})

Xfeature commented 7 years ago

ok I just used send({cmd; 'stats'})

its works :D

yep it was

Ctrl + Shift + K

in chrome