a bot for discord and travelynx, combining the privacy nightmare powers of both to broadcast your live location to your friends and enemies on aforementioned chat programme. it looks something like this:
see this page for a list of all currently supported train types (it won't break on others, it just looks fancier if the train is supported)
to set up a dev environment or host it yourself:
settings.json.example
to settings.json
and edit to your likingsqlite3 travelynx-relay.sqlite3
and copy the outputs of cat migrations/*
into the sql shellINSERT INTO servers(server_id, live_channel) VALUES(1234,5678);
nix-shell
for your dev environment, in there you can start the bot using python3 -m travelhook
when developing please occasionally run black
and maybe even pylint
. that would be dope
note: if you want to properly set this bot up you will need to add a whole bunch of train type icons as emoji to servers your bot is on and accordingly edit the source code with its ids because your bot won't have access to the servers my bot's emoji are on. i know this is very annoying. sorry