init commit

This commit is contained in:
2017-08-06 20:53:24 +08:00
commit b837379d59
3 changed files with 139 additions and 0 deletions

102
.gitignore vendored Normal file
View File

@ -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/

34
README.md Normal file
View File

@ -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
```

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
telepot
requests
bs4