basic usage

This commit is contained in:
JerryXiao 2018-12-20 14:05:02 +08:00 committed by GitHub
parent 48e47fd41c
commit 4639bf77bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,12 @@ This user bot can play uno with other humans. (Python3 only)
## Installation ## Installation
The bot uses [Telethon](https://github.com/LonamiWebs/Telethon), a Pure Python 3 MTProto API Telegram client library. The bot uses [Telethon](https://github.com/LonamiWebs/Telethon), a Pure Python 3 MTProto API Telegram client library.
Please follow [this](https://telethon.readthedocs.io/en/stable/extra/basic/installation.html#installation) guide to install Telethon, and [create your api id and hash](https://telethon.readthedocs.io/en/stable/extra/basic/creating-a-client.html). Please follow [this](https://telethon.readthedocs.io/en/stable/extra/basic/installation.html#installation) guide to install Telethon, and [create your api id and hash](https://telethon.readthedocs.io/en/stable/extra/basic/creating-a-client.html).
Then place your settings in `config.py`. Then place your settings in `config.py`.
Run the bot with `python3 bot.py` or `./bot.py`. Run the bot with `python3 bot.py` or `./bot.py`.
## Usage
Add yourself and unobot to a group. Create a new game with `/new`.
The bot will join the game and play its cards automatically.
## Contributing ## Contributing
* Copyright © 2018 JerryXiao * Copyright © 2018 JerryXiao