Find file History
Latest commit a5f0ec7 Nov 12, 2016 @fred-wang fred-wang Fix examples.
Permalink
..
Failed to load latest commit information.
README.md Update README with example output Jun 12, 2015
app.js Fix examples. Nov 12, 2016
package.json Refactor terminal app; add /invite and /roominfo. Jun 23, 2015

README.md

This is a functional terminal app which allows you to see the room list for a user, join rooms, send messages and view room membership lists.

To try it out, you will need to edit app.js to configure it for your homeserver, access_token and user_id. Then run:

 $ npm install
 $ node app

Example output:

Room List:
[0] Room Invite (0 members)
[1] Room Invite (0 members)
[2] My New Room (2 members)
[3] @megan:localhost (1 members)
[4] True Stuff (7 members)
Global commands:
  '/help' : Show this help.
Room list index commands:
  '/enter <index>' Enter a room, e.g. '/enter 5'
Room commands:
  '/exit' Return to the room list index.
  '/members' Show the room member list.

$ /enter 2

[2015-06-12 15:14:54] Megan2 <<< herro
[2015-06-12 15:22:58] Me >>> hey
[2015-06-12 15:23:00] Me >>> whats up?
[2015-06-12 15:25:40] Megan2 <<< not a lot
[2015-06-12 15:25:47] Megan2 --- [State: m.room.topic updated to: {"topic":"xXx_topic_goes_here_xXx"}]
[2015-06-12 15:25:55] Megan2 --- [State: m.room.name updated to: {"name":"My Newer Room"}]

$ /members

Membership list for room "My Newer Room"
----------------------------------------
join      :: @example:localhost (Me)
leave     :: @fred:localhost (@fred:localhost)
invite    :: @earl:localhost (@earl:localhost)
join      :: Megan2 (@megan:localhost)
invite    :: @toejam:localhost (@toejam:localhost)