Initial commit

Added the first implementation of scraping the website. The "thumbnail"
option is disabled in the embeds sent because they are not properly
handled on Guilded yet (cropping is wonky). This script should also work
for any Discord webhook URLs, but it hasn't been tested. There currently
isn't a way to pre-populate the database with hashes unless you manually
do it before hand. This is something I'm looking at adding in the future
probably.
This commit is contained in:
雲華
2021-08-17 17:33:52 -04:00
commit 12bd0027f9
5 changed files with 303 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:slim
COPY . /lanews
WORKDIR /lanews
RUN python3 -m venv venv && \
venv/bin/pip install -r requirements.txt
CMD ["venv/bin/python", "main.py"]