mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 07:16:40 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f3ad59982d
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM python:3.7-slim
|
||||||
|
|
||||||
|
COPY requirements.txt ./
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
CMD [ "python", "./stockBot.py" ]
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
telegram==0.0.1
|
||||||
|
python-telegram-bot==11.1.0
|
@ -7,9 +7,10 @@ import urllib.request
|
|||||||
import telegram
|
import telegram
|
||||||
from telegram.ext import CommandHandler, Filters, MessageHandler, Updater
|
from telegram.ext import CommandHandler, Filters, MessageHandler, Updater
|
||||||
|
|
||||||
|
import credentials
|
||||||
import tickerInfo
|
import tickerInfo
|
||||||
|
|
||||||
TOKEN = "TELEGRAM_TOKEN
|
TOKEN = credentials.secrets["TELEGRAM_TOKEN"]
|
||||||
|
|
||||||
# Enable logging
|
# Enable logging
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user