hub.docker.com
This commit is contained in:
parent
c9993783d8
commit
31f2d9c7f5
@ -2,7 +2,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: TuxDiscordBot
|
container_name: TuxDiscordBot
|
||||||
image: 'tux-discord-bot:beta'
|
image: 'dasmoorhuhn/tux-discord-bot:beta'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
import requests
|
import requests
|
||||||
from models.xkcdComic import Comic
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
from models.xkcdComic import Comic
|
||||||
|
|
||||||
|
|
||||||
class ProgrammerExcuses:
|
class ProgrammerExcuses:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.__url = "http://programmingexcuses.com"
|
self.__url = "http://programmingexcuses.com"
|
||||||
@ -15,6 +17,7 @@ class ProgrammerExcuses:
|
|||||||
end_index = html.find("</a></center>")
|
end_index = html.find("</a></center>")
|
||||||
return html[start_index+4:end_index]
|
return html[start_index+4:end_index]
|
||||||
|
|
||||||
|
|
||||||
class XKCD:
|
class XKCD:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.url = "https://xkcd.com"
|
self.url = "https://xkcd.com"
|
||||||
|
|||||||
@ -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"
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user