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.
IRCbot is only tested on Python 3. It may work on Python 2, but I have no idea.
Packages used:
- irc3
- requests
- objectpath
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
Querying routes is done with the command !route
. The bot responds with a NOTICE.
Type !help route
for the command syntax.
- Support for route times other than "depart now".
- Other options?