Rename option to client

main
Bob Mottram 2021-03-16 22:11:54 +00:00
parent 22b4818631
commit 9e0da09cf0
2 changed files with 4 additions and 6 deletions

View File

@ -406,7 +406,7 @@ python3 epicyon.py --speaker yournickname@yourdomain
Or if you have [picospeaker](https://gitlab.com/ky1e/picospeaker) installed:
``` bash
python3 epicyon.py --notifyShowNewPosts --screenreader picospeaker --notify yournickname@yourdomain
python3 epicyon.py --notifyShowNewPosts --screenreader picospeaker --client yournickname@yourdomain
```
You can also use the **--password** option to provide the password. This will then stay running and incoming posts will be announced as they arrive.

View File

@ -454,11 +454,9 @@ parser.add_argument('--level', dest='skillLevelPercent', type=int,
parser.add_argument('--status', '--availability', dest='availability',
type=str, default=None,
help='Set an availability status')
parser.add_argument('--notifications', '--notify', '--client',
dest='notifications',
parser.add_argument('--client', dest='client',
type=str, default=None,
help='Notify posts as they arrive at your ' +
'inbox. --notifications [handle]')
help='Run desktop client')
parser.add_argument('--block', dest='block', type=str, default=None,
help='Block a particular address')
parser.add_argument('--unblock', dest='unblock', type=str, default=None,
@ -1833,7 +1831,7 @@ if args.availability:
time.sleep(1)
sys.exit()
if args.notifications:
if args.client:
# Announce posts as they arrive in your inbox using text-to-speech
if args.notifications.startswith('@'):
args.notifications = args.notifications[1:]