Skip to content

Commit

Permalink
Merge pull request #380 from Der-Henning/dev
Browse files Browse the repository at this point in the history
Bump Version 1.17.1
  • Loading branch information
Der-Henning committed Jun 24, 2023
2 parents be9b2ff + 8b6ea89 commit 142b32c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
8 changes: 6 additions & 2 deletions DOCKER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Readme, source, and documentation on [https://github.com/Der-Henning/tgtg](https

- [`edge`](https://github.com/Der-Henning/tgtg/blob/main/Dockerfile)
- [`edge-alpine`](https://github.com/Der-Henning/tgtg/blob/main/Dockerfile.alpine)
- [`v1`, `v1.17`, `v1.17.0`, `latest`](https://github.com/Der-Henning/tgtg/blob/v1.17.0/Dockerfile)
- [`v1-alpine`, `v1.17-alpine`, `v1.17.0-alpine`, `latest-alpine`](https://github.com/Der-Henning/tgtg/blob/v1.17.0/Dockerfile.alpine)
- [`v1`, `v1.17`, `v1.17.1`, `latest`](https://github.com/Der-Henning/tgtg/blob/v1.17.1/Dockerfile)
- [`v1-alpine`, `v1.17-alpine`, `v1.17.1-alpine`, `latest-alpine`](https://github.com/Der-Henning/tgtg/blob/v1.17.1/Dockerfile.alpine)

# Quick Start

Expand Down 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 requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
altgraph==0.17.3
pyinstaller==5.12.0
pyinstaller-hooks-contrib==2023.1
pyinstaller-hooks-contrib==2023.3
2 changes: 1 addition & 1 deletion src/_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = "TGTG Scanner"
__description__ = "Provides notifications for TGTG magic bags"
__version__ = "1.17.0"
__version__ = "1.17.1"
__author__ = "Henning Merklinger"
__author_email__ = "henning.merklinger@gmail.com"
__license__ = "GPL"
Expand Down
7 changes: 4 additions & 3 deletions 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 Expand Up @@ -106,8 +106,9 @@ def _send(self, item: Item) -> None:
self._send_message(message, image)

def _send_reservation(self, reservation: Reservation) -> None:
display_name = escape_markdown(reservation.display_name, version=2)
message = f"{display_name} is reserved for 5 minutes!"
message = escape_markdown(
f"{reservation.display_name} is reserved for 5 minutes",
version=2)
self._send_message(message)

def _send_message(self, message: str, image: bytes = None) -> None:
Expand Down

0 comments on commit 142b32c

Please sign in to comment.