Skip to main content

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

  • /start the bot
  • Ask for /help for further information
  • Ask for /ciclopi information

"Server" side

You may choose between method 1 (pip) and method 2 (git).

  1. Using pip
    • Install ciclopibot
    pip install ciclopibot
    
    • Run ciclopibot as module
    python -m ciclopibot -h  # Get help 
    python -m ciclopibot <your_token_here>
    
  2. 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.py module.
        • 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_environment and python_script variables in my_config.sh
    • 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


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.2.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ciclopibot-1.2.2-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file ciclopibot-1.2.2.tar.gz.

File metadata

  • Download URL: ciclopibot-1.2.2.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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ciclopibot-1.2.2.tar.gz
Algorithm Hash digest
SHA256 84ca211877c3629c2179aeda7f91e4b9a0004bb9727f216681e017e56f5e88e0
MD5 8452b6135d557c9451028b63316edb44
BLAKE2b-256 354767e4df6db1b36011d0efa058f91df3728bb05b219a876c0649cb912d050e

See more details on using hashes here.

File details

Details for the file ciclopibot-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: ciclopibot-1.2.2-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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ciclopibot-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2d1088346424998cd480c9b4cda2f1d9ac3862b85f553df7dcd17de17bf9a7e
MD5 5ea7bba4f72b160227b1dbfa8b1e5c70
BLAKE2b-256 6a9559ab07f4221ac4d3c5c3f310cf412871fd5e9ea2d5bc0891c66d560353c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page