From b837379d59859611396ebd5903a9d4d55f221f41 Mon Sep 17 00:00:00 2001 From: PinLin Date: Sun, 6 Aug 2017 20:53:24 +0800 Subject: [PATCH] init commit --- .gitignore | 102 +++++++++++++++++++++++++++++++++++++++++++++++ README.md | 34 ++++++++++++++++ requirements.txt | 3 ++ 3 files changed, 139 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f01226 --- /dev/null +++ b/.gitignore @@ -0,0 +1,102 @@ +# macOS +.DS_Store + +# 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 new file mode 100644 index 0000000..defa742 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# kCOJ_bot + +Telegram Bot that is for students in The Great NTUT CSIE. + +Via this bot, you could manage your homeworks of Computer Programming Class. + +It runs as [@kCOJ_bot](https://telegram.me/kcoj_bot) now. + +## Requirements + +- Python 3.6 + - telepot + - requests + - beautifulsoup + +## Install + +Clone it. + +```bash +git clone https://github.com/pinlin/kCOJ_bot.git +``` + +Install necessary modules. + +```bash +pip install requests bs4 telepotInstall +``` + +Run it. + +```bash +python bot.py +``` \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5baaa1c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +telepot +requests +bs4