GithubHelp home page GithubHelp logo

agflore / cnrail_tg_bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from waymao/cnrail_tg_bot

1.0 1.0 0.0 63 KB

A telegram bot to look up useful info about the china national railway.

Home Page: https://t.me/cn_rail_bot

License: GNU General Public License v3.0

Python 99.29% Dockerfile 0.71%
railway-api 12306 telegram-bot

cnrail_tg_bot's Introduction

China Railway info query bot

A bot to look up useful info about the china national railway.

Installing

After downloading the project, please run:

pip install -r requirements.txt

Running

python3 bot.py

Files

├── README.md           - this file
├── bot.py              - Main handler for the bot
├── bot_config.py       - Configurations for the bot.
├── bot_logging.py      - Logging settings.
├── commands            - Command folder. for all commands and other callback
│   ├── __init__.py     - imports py files and adds handlers to the list.
│   ├── basics.py       - Basic welcome module.
│   ├── history.py      - query the history of the train. (for Shanghai and Beijing Railway EMUs.)
│   ├── timetable.py    - timetable lookup module.
│   ├── train_plan_graph.py - get the planning graph of the train no. using moerail.ml functionality.
│   └── train_wifi12306.py - query train info from `com.wifi12306`
├── railroad_lib        - Some helper libraries taken from other projs
│   ├── __init__.py
│   ├── pids_realtime.py   - By AgFlore, for querying station's real-time PIDS board from `com.wifi12306`
│   ├── query12306.py   - By Lifan Zhang, for timetable function
│   ├── query_wifi12306.py   - By AgFlore, for querying information from `com.wifi12306`
│   ├── train_history.py - helper file for train no.
│   └── TrainNoDB.py    - a searchable db of train numbers. Saved for future functionalities.
└── requirements.txt    - python packages required

Contributing

All contributions are welcome.

Licence

GPL V3

Author and Acknowledgements

Main function made by waymao, with the help from lfz.

Huge thanks to the developer of the python telegram bot library.

cnrail_tg_bot's People

Contributors

agflore avatar waymao avatar

Stargazers

 avatar

Watchers

 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.