-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from toddrob99/alpha
Platform: VER: v0.0.7 NEW: Add docker-compose.yml ENH: Update docker image to python-3.8.3 Game Thread Bot: VER: v0.0.7 NEW: Telegram-compatible webhook templates FIX: Thread update process crashes on game with team that has no Division ("Intrasquad") FIX: Support for some new data permutations during weird season FIX: Data issues with seasonState and game_thread template
- Loading branch information
Showing
14 changed files
with
71 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## This template produces data in JSON format suitable for Telegram webhooks | ||
## Be sure to include \n for line breaks, because actual linebreaks will be stripped out! | ||
{"text": "${commentText.replace('"','\"').replace('\r','').replace('\n','\\n')}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## This template produces data in JSON format suitable for Telegram webhooks | ||
{"text":"Game Thread Posted!\n${theThread.title}\n${theThread.shortlink}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## This template produces data in JSON format suitable for Telegram webhooks | ||
{"text":"Game Day Thread Posted!\n${theThread.title}\n${theThread.shortlink}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<%page args="gamePk,dateFormat='%a, %b %d @ %I:%M %p %Z'" />\ | ||
## Matchup header: Team names with links to team subs and matchup image, followed by game date | ||
[${data[gamePk]['schedule']['teams']['away']['team']['teamName']}](${data[0]['teamSubs'][data[gamePk]['schedule']['teams']['away']['team']['id']]}) [@](http://mlb.mlb.com/images/2017_ipad/684/${data[gamePk]['schedule']['teams']['away']['team']['fileCode'] + data[gamePk]['schedule']['teams']['home']['team']['fileCode']}_684.jpg) [${data[gamePk]['schedule']['teams']['home']['team']['teamName']}](${data[0]['teamSubs'][data[gamePk]['schedule']['teams']['home']['team']['id']]}) - ${data[gamePk]['gameTime']['myTeam'].strftime(dateFormat)} | ||
[${data[gamePk]['schedule']['teams']['away']['team']['teamName']}](${data[0]['teamSubs'].get(data[gamePk]['schedule']['teams']['away']['team']['id'], data[0]['teamSubs'][0])}) [@](http://mlb.mlb.com/images/2017_ipad/684/${data[gamePk]['schedule']['teams']['away']['team']['fileCode'] + data[gamePk]['schedule']['teams']['home']['team']['fileCode']}_684.jpg) [${data[gamePk]['schedule']['teams']['home']['team']['teamName']}](${data[0]['teamSubs'].get(data[gamePk]['schedule']['teams']['home']['team']['id'], data[0]['teamSubs'][0])}) - ${data[gamePk]['gameTime']['myTeam'].strftime(dateFormat)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## This template produces data in JSON format suitable for Telegram webhooks | ||
{"text":"Off Day Thread Posted!\n${theThread.title}\n${theThread.shortlink}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## This template produces data in JSON format suitable for Telegram webhooks | ||
{"text":"Post Game Thread Posted!\n${theThread.title}\n${theThread.shortlink}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## This template produces data in JSON format suitable for Telegram webhooks | ||
{"text":"Weekly Thread Posted!\n${theThread.title}\n${theThread.shortlink}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.0' | ||
services: | ||
redball: | ||
container_name: redball | ||
image: toddrob/redball:latest | ||
volumes: | ||
- ./data:/app/data | ||
- ./logs:/app/logs | ||
- ./custom_templates:/app/custom_templates | ||
- ./certs:/app/certs | ||
environment: | ||
- TZ=America/New_York | ||
restart: unless-stopped | ||
network_mode: bridge | ||
ports: | ||
- 8087:8087 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env python | ||
|
||
VERSION = "0.0.6" | ||
VERSION = "0.0.7" |