BE A GOOD BOT

This commit is contained in:
Hugo Levy-Falk 2021-03-07 18:23:52 +01:00
parent 69ef72a039
commit 6df2a587a1
3 changed files with 15 additions and 3 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
result.json
docker-compose.yml

View file

@ -1,5 +1,5 @@
FROM julia:latest
WORKDIR /code
RUN julia -e "import Pkg;Pkg.add(\"/code\")"
ADD . /code
RUN julia -e "import Pkg;Pkg.add(path=\"/code\")"
ENTRYPOINT julia -e "using TelegramMarkov;run_server()"

View file

@ -0,0 +1,11 @@
version: '3'
services:
telegrammarkov:
build: .
volumes:
- .:/code
environment:
TG_CHAT_ID: "secret"
INPUT_MARKOV: /code/result.json
TG_TOKEN_MARKOV: "another secret"