Handle posts with no comments
[jan-pona-mute.git] / README.md
CommitLineData
d6e4e60d
AS
1Jan Pona Mute
2=============
3
4The name is Toki Pona and means "many friends".
5
6This is a very simple command line client for Diaspora that helps me
7deal with my specific use-cases:
8
9- I want to check Diaspora for new comment on my threads
10- I want to leave new comments on my threads
11- I want to delete comments I left by mistake
12
13It's *very* limited but it's helping me get started using the
14[https://github.com/marekjm/diaspy diaspy] Python library.
bfc18b3e
AS
15
16Installation
17------------
18
19We need the [https://github.com/marekjm/diaspy diaspy] library. Use
20`pip` to install it.
21
22```
23$ pip3 install diaspy
24```
25
26Quickstart
27==========
28
29```
30$ python3 jan-pona-mute.py
31Welcome to Diaspora! Use the intro command for a quick introduction.
32Pager set: /usr/bin/fold
33> account kensanata@pluspora.com
34Username and pod set: kensanata@pluspora.com
35> password *secret*
36Password set
37> login
38 1. 2019-08-13T19:40:17.000Z Joe Doe has liked your post I've started writing...
39 2. 2019-08-13T17:59:23.000Z Joe Doe commented on your post Please help me wi...
40 3. 2019-08-13T17:03:45.000Z Jane Doe has liked your post I've started writin...
41 4. 2019-08-13T15:02:50.000Z June Doe commented on your post I don't like Mon...
42 5. 2019-08-13T14:48:51.000Z John Doe liked your post Monday again! What am I...
43Enter a number to select the notification.
44> 1
452019-08-13T19:40:17.000Z Joe Doe has liked your post I've started writing...
46Loading...
47
48I've started writing a Diaspora client for the command line. It's called Jan Pona
49Mute which means as much as "many friends" in English. It's written in Python and
50doesn't do much.
51> comments
52There are no comments on the selected post.
53> comment This is me leaving a comment.
54Comment posted
55> comments
56
57 1. 2019-08-13T20:04:35.000Z Alex Schroeder
58
59Alex Schroeder (e3bd7110b2ee013620f200505608f9fe): This is me leaving a comment.
60> quit
61Be safe!
62```
63
64Next Step
65---------
66
67Use the `save` command to save the login information (including the
68password!) to an init file.
69
70The init files searched are:
71
721. `~/.config/jan-pona-mute/login`
732. `~/.config/.jan-pona-mute`
743. `~/.jan-pona-mute`
75
76If one of them exists while starting up, that's the file that gets
77written. If none exists, the first one is going to be created by the
78`save` command.
79
80Any further commands you put into the file are simple executed as if
81you were to type them every time you start the program.
82
83Reference
84---------
85
86So much is still in flux. Please use the `help` command to learn more.