From bb1512c782a5e5a6aa76eb677476262af95fc6be Mon Sep 17 00:00:00 2001 From: Tsundere Chen Date: Sat, 19 Aug 2017 23:23:39 +0800 Subject: [PATCH] Add requirements file --- .gitignore | 99 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 5 +++ telebot.py => app.py | 0 requirements.txt | 7 ++++ 4 files changed, 111 insertions(+) create mode 100644 .gitignore rename telebot.py => app.py (100%) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..113294a --- /dev/null +++ b/.gitignore @@ -0,0 +1,99 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ diff --git a/README.md b/README.md index 30704f3..2432d8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +# CCNS Quiz Bot - Telegram Client + +Install the dependencies first in the requirements file +Add the token and url to app.py, then run the bot. + Reference https://core.telegram.org/bots diff --git a/telebot.py b/app.py similarity index 100% rename from telebot.py rename to app.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e5b1490 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +certifi==2017.7.27.1 +chardet==3.0.4 +future==0.16.0 +idna==2.6 +python-telegram-bot==7.0.1 +requests==2.18.4 +urllib3==1.22