tg-sync

git clone git://archive.git.mtrnord.blog/Nordgedanken/tg-sync.git
Log | Files | Refs | README

commit f283d68fa757be5e690697b3d88b6912d693a375
parent 8ebc107bef12525ffb61b335e32b8c57749049bb
Author: Marcel <mtrnord1@gmail.com>
Date:   Thu, 16 Feb 2017 11:26:03 +0100

Add Dockerfile

Diffstat:
ADockerfile | 9+++++++++
Mbot.py | 6++----
Mbot/Hcommand.py | 1-
3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.5 + +WORKDIR /app + +COPY . /app + +RUN pip install -r requirements.txt + +CMD ["python", "/app/bot.py"] diff --git a/bot.py b/bot.py @@ -12,11 +12,9 @@ from bot.helper import config_class class Core: def run(self): pool = Pool(2) - telegram_class = Htelegram.Telegram() - slack_class = Hslack.Slack() try: - Ttelegram = pool.apply_async(telegram_class.telegram_init(), []) - Tslack = pool.apply_async(slack_class.slack_init(), []) + Ttelegram = pool.apply_async(Htelegram.Telegram().telegram_init(), []) + Tslack = pool.apply_async(Hslack.Slack().slack_init(), []) pool.close() Ttelegram.join() Tslack.join() diff --git a/bot/Hcommand.py b/bot/Hcommand.py @@ -7,7 +7,6 @@ from telegram.ext import Filters def register_command(filter): def wrap(f): - print("Inside wrap()") #r = f() updater.dispatcher.add_handler(telegram.ext.CommandHandler(filter, f)) return wrap