From 31f2d9c7f5acddf40e14eba4032f03954f43b609 Mon Sep 17 00:00:00 2001 From: DasMoorhuhn Date: Sat, 4 Feb 2023 17:16:54 +0100 Subject: [PATCH] hub.docker.com --- docker-compose.yml | 2 +- src/addons.py | 5 ++++- src/models/response.json | 13 ------------- 3 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 src/models/response.json diff --git a/docker-compose.yml b/docker-compose.yml index e0e7f35..e81c9ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: app: container_name: TuxDiscordBot - image: 'tux-discord-bot:beta' + image: 'dasmoorhuhn/tux-discord-bot:beta' restart: unless-stopped build: . volumes: diff --git a/src/addons.py b/src/addons.py index 9b44b51..eaa49d2 100644 --- a/src/addons.py +++ b/src/addons.py @@ -1,7 +1,9 @@ import requests -from models.xkcdComic import Comic import json +from models.xkcdComic import Comic + + class ProgrammerExcuses: def __init__(self) -> None: self.__url = "http://programmingexcuses.com" @@ -15,6 +17,7 @@ class ProgrammerExcuses: end_index = html.find("") return html[start_index+4:end_index] + class XKCD: def __init__(self) -> None: self.url = "https://xkcd.com" diff --git a/src/models/response.json b/src/models/response.json deleted file mode 100644 index 5e88fd9..0000000 --- a/src/models/response.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "month": "2", - "num": 2732, - "link": "", - "year": "2023", - "news": "", - "safe_title": "Bursa of Fabricius", - "transcript": "", - "alt": "If an anatomical structure is named for a person, it means they were the only person to have it. Pierre Paul Broca had a special area of his brain that created powerful magnetic fields, enabling him to do 19th century fMRI research.", - "img": "https://imgs.xkcd.com/comics/bursa_of_fabricius.png", - "title": "Bursa of Fabricius", - "day": "1" -} \ No newline at end of file