Skip to content

Route finder IRC bot for Helsinki area public transport

License

Notifications You must be signed in to change notification settings

ronjakoi/hslbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSLbot

HSLbot is an IRC bot for finding public transportation routes in the Helsinki, Finland metropolitan area. It uses publicly available JSON and GraphQL APIs.

You can try the bot on IRCnet with the command /query hslbot !help route.

You are also welcome to join the #hslbot channel.

Requirements

IRCbot is only tested on Python 3. It may work on Python 2, but I have no idea.

Packages used:

  • irc3
  • requests
  • objectpath

Usage

virtualenv -p python3 .
. bin/activate
pip3 install -r requirements.txt

At this point you want to edit your config.ini to configure the bot's nick, which server to connect to, etc.

Lastly:

irc3 config.ini

Command syntax

Querying routes is done with the command !route. The bot responds with a NOTICE.

Type !help route for the command syntax.

TODO

  • Support for route times other than "depart now".
  • Other options?

About

Route finder IRC bot for Helsinki area public transport

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages