File: README.md

package info (click to toggle)
node-matrix-js-sdk 9.3.0%2B~cs9.9.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,904 kB
  • sloc: javascript: 39,573; sh: 275; makefile: 31; python: 11
file content (46 lines) | stat: -rw-r--r-- 1,381 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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)
```