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

  • 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.1.7.tar.gz (18.1 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.1.7-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ciclopibot-1.1.7.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for ciclopibot-1.1.7.tar.gz
Algorithm Hash digest
SHA256 047db42edf58669a2d6b4f8ab8b4ac8f9ae3869c6d51e15b2b5879ccd27a81f1
MD5 27a88b908f1e5e1ea0e8257897c3a881
BLAKE2b-256 5944922c5d929076e50bc8fd17cc24225813f2cfc4d1778e8fba3b8ae4c07f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ciclopibot-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for ciclopibot-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 92e1c4a5c4c197efb998ae2f7441b3d26aeba0c460c54e9d52ece17f88b8cfcb
MD5 649c6ffba43862dc51722e939502d510
BLAKE2b-256 721d43afe4c507072eb9f6835f66c59831c1c86a7cf54f97284ebe7715172f8f

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