From 67b67b95eb59e6335c9f6e15810465011f845616 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 20:43:02 +0000 Subject: [PATCH 1/3] Pronounce --- speaker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/speaker.py b/speaker.py index 2dde36ec2..c2b99b207 100644 --- a/speaker.py +++ b/speaker.py @@ -92,6 +92,8 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str: "Tor": "Toor", "memes": "meemes", "Memes": "Meemes", + "rofl": "roll on the floor laughing", + "ROFL": "roll on the floor laughing", "fwiw": "for what it's worth", "fyi": "for your information", "imho": "in my opinion", From 3ad98437c420f3d638fb8ad1d71a91eeb3e8b829 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 21:08:18 +0000 Subject: [PATCH 2/3] Pronounce --- speaker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/speaker.py b/speaker.py index c2b99b207..b74d6a529 100644 --- a/speaker.py +++ b/speaker.py @@ -96,6 +96,8 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str: "ROFL": "roll on the floor laughing", "fwiw": "for what it's worth", "fyi": "for your information", + "irl": "in real life", + "IRL": "in real life", "imho": "in my opinion", "fediverse": "fediiverse", "Fediverse": "Fediiverse", From 4085d92d6155b702218eb9513736706c78c4e26b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 10 Mar 2021 21:45:34 +0000 Subject: [PATCH 3/3] Announce command for notification client --- notifications_client.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/notifications_client.py b/notifications_client.py index a8c5ed03f..c8662d01f 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -24,6 +24,7 @@ from like import sendUndoLikeViaServer from follow import sendFollowRequestViaServer from follow import sendUnfollowRequestViaServer from posts import sendPostViaServer +from announce import sendAnnounceViaServer def _waitForKeypress(timeout: int, debug: bool) -> str: @@ -488,6 +489,23 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, cachedWebfingers, personCache, True, __version__) print('') + elif (keyPress == 'announce' or + keyPress == 'boost' or + keyPress == 'retweet'): + if speakerJson.get('id'): + if nameStr and gender and messageStr: + postId = speakerJson['id'] + _sayCommand('Announcing post by ' + nameStr, + screenreader, + systemLanguage, espeak) + sessionAnnounce = createSession(proxyType) + sendAnnounceViaServer(baseDir, sessionAnnounce, + nickname, password, + domain, port, + httpPrefix, postId, + cachedWebfingers, personCache, + True, __version__) + print('') elif keyPress.startswith('follow '): followHandle = keyPress.replace('follow ', '').strip() if followHandle.startswith('@'):