Skip to content

Commit

Permalink
Update docker-compose for script support and correct typo (#373)
Browse files Browse the repository at this point in the history
* Update docker-compose for script support

* Update DOCKER_README.md for script support

* Correct typo in telegram.py
  • Loading branch information
bisselch committed Jun 23, 2023
1 parent be9b2ff commit 895b7d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions DOCKER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ services:
#- TELEGRAM_TIMEOUT=60
#- TELEGRAM_BODY=

- SCRIPT=false
- SCRIPT_COMMAND=
#- SCRIPT_CRON=

- IFTTT=false
- IFTTT_EVENT=tgtg_notification
- IFTTT_KEY=
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ services:
## In some cases you may have to add
## 'TELEGRAM_BODY={{` ... `}}'

- SCRIPT=false ## true = enable running a script
- SCRIPT_COMMAND= ## Path to custom script. Example:
## SCRIPT_COMMAND=/home/user/tgtg/src/notify.sh
## Make sure the script is executable!
#- SCRIPT_CRON=

- IFTTT=false ## true = enable notifications via IFTTT Webhooks
- IFTTT_EVENT=tgtg_notification ## IFTTT Webhooks Event
- IFTTT_KEY= ## IFTTT Webhooks Key
Expand Down
2 changes: 1 addition & 1 deletion src/notifiers/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, config: Config, reservations: Reservations):
'Deactivate Telegram Notifications for '
'1 or x days'),
BotCommand('unmute', 'Reactivate Telegram Notifications'),
BotCommand('reserve', 'Reserve the next available Mafic Bag'),
BotCommand('reserve', 'Reserve the next available Magic Bag'),
BotCommand('reservations', 'List and cancel Reservations'),
BotCommand('orders', 'List and cancel active Orders'),
BotCommand('cancelall', 'Cancels all active orders')
Expand Down

0 comments on commit 895b7d2

Please sign in to comment.