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).
pip3 install git+https://github.com/chingyuchen/CYCBikes
Simply add (@cycbikes_bot) as friend on telegram and start the chat.
To run the cyctelebot on your own telegram bot (i.e. let your own bot provides the bike-share information service), you need to:
- download all the files in CYCTelebot.
- Create file cycbikes_TOKEN in the same directory and write the token of your own bot in the file.
- 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!
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.