Giter Site home page Giter Site logo

chingyuchen / cycbikes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 78 KB

CYCBikes is a telegram bot project. The bot provides real-time information of the world-wide bike-share system. The bot is currently running on telegram (@cycbikes_bot)

License: MIT License

Python 100.00%

cycbikes's Introduction

CYCBikes

About

CYCBikes is a telegram bot project in python3. The bot provides the real-time information of the world-wide bike-share system. The bot is currently running on telegram (@cycbikes_bot).

Installation

pip3 install git+https://github.com/chingyuchen/CYCBikes

Usage

Request bike-share information from CYCBikes

Simply add (@cycbikes_bot) as friend on telegram and start the chat.

Run on your own bot

To run the cyctelebot on your own telegram bot (i.e. let your own bot provides the bike-share information service), you need to:

  1. download all the files in CYCTelebot.
  2. Create file cycbikes_TOKEN in the same directory and write the token of your own bot in the file.
  3. use python3 to execute cyctelebot.py in the same directory or directly execute cycbikes
    python3 cyctelebot.py or
    ./cycbikes

Then your bot can start to look for bike-share information for the users!

Add commands

All the command programs are subclasses of PgmAbstract in pgmabstract module (pgmabstract.py). One can add new command program by writing a subclass of new program which inherits PgmAbstact in the same directory. Then add the corresponding ("/new_command" : "NewProgramSubclassName") in the list of the commandsmap.json file.

cycbikes's People

Contributors

chingyuchen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.