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.0.8.tar.gz (15.0 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.0.8-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ciclopibot-1.0.8.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for ciclopibot-1.0.8.tar.gz
Algorithm Hash digest
SHA256 9cce1bafc82563860ce94c1c7f07c91bee8ad42c287c872b52a5c15391c3b493
MD5 a3ad6fdeb64488243885b5ba12c0d7ae
BLAKE2b-256 db25013bf0c87434a08c7f1028392550dc27adc7cfce5e7751df331e4f8e3a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ciclopibot-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for ciclopibot-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3d79842eddd33be07ffe4ccac62fa793e6d6690da10c08ccf6a36b5bf4220b10
MD5 dbe748962fc7171ecd5498198286d399
BLAKE2b-256 a8a08028a314bee7fba60d23b2a1b6b5a75c619a8f6c1acf49297030cce2e258

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