hub.docker.com

This commit is contained in:
DasMoorhuhn 2023-02-04 17:16:54 +01:00
parent c9993783d8
commit 31f2d9c7f5
3 changed files with 5 additions and 15 deletions

View File

@ -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:

View File

@ -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("</a></center>")
return html[start_index+4:end_index]
class XKCD:
def __init__(self) -> None:
self.url = "https://xkcd.com"

View File

@ -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"
}