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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ciclopibot-1.2.6.tar.gz
(19.8 kB
view details)
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.6.tar.gz.
File metadata
- Download URL: ciclopibot-1.2.6.tar.gz
- Upload date:
- Size: 19.8 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.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec1641366a6620bf9b795a1e57d38943d7d10cfea52605d3a9533a2980bfb04e
|
|
| MD5 |
40e1682915871de900f48914ebb158c3
|
|
| BLAKE2b-256 |
814ee346b89c9a445ebb86671d732b1b28e812dfa8fdd26ab96192409b723572
|
File details
Details for the file ciclopibot-1.2.6-py3-none-any.whl.
File metadata
- Download URL: ciclopibot-1.2.6-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.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ccce97a4a99ec57c46c7562a8bfcef1d2b5ea30d5d4348a5b1ef8f8c93bf473
|
|
| MD5 |
ee5f2dbfc07435581a95870719ec5ffe
|
|
| BLAKE2b-256 |
05e1c6289499d05d2cfa32c43de112c58fb3d50edd4360dec592172885f19b6e
|