mirror of https://gitlab.com/bashrc2/epicyon
Placeholders for accept and reject commands
parent
6d31eff11f
commit
5aaaf08c68
|
@ -477,11 +477,11 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
|||
print('')
|
||||
|
||||
sayStr = indent + boxName + ' posts ' + str(startPostIndex + 1) + \
|
||||
' to ' + str(startPostIndex + ctr) + '. '
|
||||
' to ' + str(startPostIndex + ctr) + '. '
|
||||
sayStr += \
|
||||
'Use the \33[3mnext\33[0m and \33[3mprev\33[0m commands to navigate.'
|
||||
_sayCommand(sayStr, sayStr.replace('\33[3m', '').replace('\33[0m', ''),
|
||||
screenreader, systemLanguage, espeak)
|
||||
sayStr2 = sayStr.replace('\33[3m', '').replace('\33[0m', '')
|
||||
_sayCommand(sayStr, sayStr2, screenreader, systemLanguage, espeak)
|
||||
if notifyJson:
|
||||
if notifyJson.get('followRequestsList'):
|
||||
if len(notifyJson['followRequestsList']) > 0:
|
||||
|
@ -489,13 +489,13 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
|||
sayStr = indent + 'You have a follow request from ' + \
|
||||
'\33[7m' + \
|
||||
notifyJson['followRequestsList'][0].strip() + '\33[0m'
|
||||
_sayCommand(sayStr,
|
||||
sayStr.replace('\33[7m', '').replace('\33[0m', ''),
|
||||
sayStr2 = sayStr.replace('\33[7m', '').replace('\33[0m', '')
|
||||
_sayCommand(sayStr, sayStr2,
|
||||
screenreader, systemLanguage, espeak)
|
||||
sayStr = indent + 'Use the \33[3maccept\33[0m or ' + \
|
||||
'\33[3mreject\33[0m commands to respond.'
|
||||
_sayCommand(sayStr,
|
||||
sayStr.replace('\33[3m', '').replace('\33[0m', ''),
|
||||
sayStr2 = sayStr.replace('\33[3m', '').replace('\33[0m', '')
|
||||
_sayCommand(sayStr, sayStr2,
|
||||
screenreader, systemLanguage, espeak)
|
||||
print('')
|
||||
|
||||
|
@ -1221,3 +1221,29 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
|
|||
_sayCommand(sayStr, sayStr, originalScreenReader,
|
||||
systemLanguage, espeak)
|
||||
print('')
|
||||
elif keyPress.startswith('accept'):
|
||||
if notifyJson:
|
||||
if notifyJson.get('followRequestsList'):
|
||||
if len(notifyJson['followRequestsList']) > 0:
|
||||
sayStr = 'Accepting follow request for ' + \
|
||||
notifyJson['followRequestsList'][0]
|
||||
_sayCommand(sayStr, sayStr, originalScreenReader,
|
||||
systemLanguage, espeak)
|
||||
# TODO
|
||||
sayStr = 'This command is not yet implemented'
|
||||
_sayCommand(sayStr, sayStr, originalScreenReader,
|
||||
systemLanguage, espeak)
|
||||
print('')
|
||||
elif keyPress.startswith('reject'):
|
||||
if notifyJson:
|
||||
if notifyJson.get('followRequestsList'):
|
||||
if len(notifyJson['followRequestsList']) > 0:
|
||||
sayStr = 'Rejecting follow request for ' + \
|
||||
notifyJson['followRequestsList'][0]
|
||||
_sayCommand(sayStr, sayStr, originalScreenReader,
|
||||
systemLanguage, espeak)
|
||||
# TODO
|
||||
sayStr = 'This command is not yet implemented'
|
||||
_sayCommand(sayStr, sayStr, originalScreenReader,
|
||||
systemLanguage, espeak)
|
||||
print('')
|
||||
|
|
Loading…
Reference in New Issue