import { Client, UserPassAuthentication } from 'so-chat-client';
const client = new Client(new UserPassAuthentication('user', 'pass'), 17);
client.on('message', message => {
if (message.room.id === 17 && message.contents === '!!Hello') {
client.sendMessage(message.room, 'Goodbye!');
}
});