Skip to content

Commit

Permalink
Add warning for missing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Jan 2, 2024
1 parent ab36347 commit fb58e51
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,27 @@ def generate_pack(sticker_paths: list, pack: str, export_type: str, fmt: str) ->
if SIGNAL_UUID:
cmd.append(f'--signal-uuid')
cmd.append(SIGNAL_UUID)
else:
print('WARNING: SIGNAL_UUID not set')

if SIGNAL_PASSWORD:
cmd.append(f'--signal-password')
cmd.append(SIGNAL_PASSWORD)
else:
print('WARNING: SIGNAL_PASSWORD not set')

if TELEGRAM_TOKEN:
cmd.append(f'--telegram-token')
cmd.append(TELEGRAM_TOKEN)
else:
print('WARNING: TELEGRAM_TOKEN not set')

if TELEGRAM_USERID:
cmd.append(f'--telegram-userid')
cmd.append(TELEGRAM_USERID)
else:
print('WARNING: TELEGRAM_USERID not set')

if fmt == 'gif':
cmd.append('--fake-vid')

Expand Down

0 comments on commit fb58e51

Please sign in to comment.