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:
- install nix
- clone the source code
- copy
settings.json.example
tosettings.json
and edit to your liking - initialize the database: run
cat migrations/* | sqlite3 -echo travelynx-relay.sqlite3
- add your server's and optionally a live feed channel's ids to the database (the bot only works with manually added servers for now):
INSERT INTO servers(server_id, live_channel) VALUES(1234,5678);
- run
nix-shell
for your dev environment, in there you can start the bot usingpython3 -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