Telegram bot based on `davtelepot` providing information about CicloPi, the public bike-sharing service in Pisa.
Project description
CicloPiBot
@CicloPiBot is a Telegram bot based on davtelepot which provides information about CicloPi, the public bike-sharing service in Pisa.
Usage
Client side
Send /start @CicloPiBot, all you need is a Telegram account.
Commands
/startthe bot- Ask for
/helpfor further information - Ask for
/ciclopiinformation
"Server" side
You may choose between method 1 (pip) and method 2 (git).
- Using
pip- Install ciclopibot
pip install ciclopibot
- Run ciclopibot as module
python -m ciclopibot -h # Get help python -m ciclopibot <your_token_here>
- Using
git- Clone this repository
git clone ssh://git@gogs.davte.it:8445/Davte/ciclopibot.git # git clone https://gogs.davte.it/Davte/ciclopibot.git # git clone git@github.com:Davte/ciclopibot.git # git clone https://github.com/Davte/ciclopibot.git
- Run
install.sh: it will help you perform the following operations.- Put a Telegram bot token in gitignored
data/passwords.pymodule.- To get a token, ask @BotFather.
- The bot whose token you use will act as @CicloPiBot as long as you run the script.
- Create a python3.5+ virtual environment and install requirements.
- Specify
python_virtual_environmentandpython_scriptvariables inmy_config.sh
- Put a Telegram bot token in gitignored
- Run
run_me.sh
bash run_me.sh;
- You may edit the file and test your code with your bot.
- Should you be satisfied of your edits enough, you may fork this repository and open a pull request.
Credits
- Davte is the creator and the main author of this repository.
- All data are obtained from CicloPi website and are meant to help users save time when using their service. Misuse is discouraged.
- Minala inspired the idea and gave a first version of this service many years ago with a different implementation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ciclopibot-1.2.3.tar.gz.
File metadata
- Download URL: ciclopibot-1.2.3.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99e417ecc369a83c39580b9430566c9695b8d6cb36bb3ba981b496c8f930797b
|
|
| MD5 |
cc5c76300607990fb7183779fd9abc12
|
|
| BLAKE2b-256 |
0f1066d1c9e757aeba6fee447dd73b241671435116c339a04e8516786b8ec64e
|
File details
Details for the file ciclopibot-1.2.3-py3-none-any.whl.
File metadata
- Download URL: ciclopibot-1.2.3-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e7fda025d8e004a96b875c168056429636838a01074c76ed1d210b610793ed
|
|
| MD5 |
19ebe2087959fcd9147ae3d3160a5989
|
|
| BLAKE2b-256 |
ba9774e0253d2a1ae5094224f4444ca22faf294a1c00e9f140dd1d41de284aae
|