diff --git a/.gitignore b/.gitignore index 5fddf1d..6a18ad4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -settings.cfg - # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..882a15e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:alpine + +WORKDIR /bot +COPY . . +RUN touch settings.cfg + +RUN pip install --no-cache-dir --requirement requirements.txt + +ENTRYPOINT ["python", "bot.py"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d1c130e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +irc +python-dateutil +requests diff --git a/settings.cfg.example b/settings.cfg.example new file mode 100644 index 0000000..2362f33 --- /dev/null +++ b/settings.cfg.example @@ -0,0 +1,16 @@ +[IRC] +server = irc.chat.twitch.tv +port = 6667 +nickname = spooky_lurker +channel = lilialil + +[Twitch] +api_url = https://api.twitch.tv/v5 +client_id = __TWITCH_CLIENT_ID__ +token = oauth:__TWITCH_OAUTH_TOKEN__ +target_user_id = 92737529 # lilialil +master_user_id = 210957066 # nikola_f + +[Quotes] +api_url = https://ladylilia.com/quotes/api +api_key = __QUOTES_API_KEY__