diff --git a/README.md b/README.md index c8e50f9..21c3a49 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ The bot can join the voice chat, play an audio file, and disconnect from the voi Place the audio file of your desired station in [src/data/announcements](src/data/announcements/) with the EXACT name of the station. The bot will automatically check if an audio file with the stations name exists, and if it does, play it. #### http -- `"user_agent"`: The user agent of the bot for the API. If you don't know what that is, then you shouldn't have to change that. +- `"user_agent"`: The user agent of the bot for the API. If you don't know what that is, then you shouldn't have to change that. Modify the contact URL (in my case, the github repo) if you change a lot of the code, so that transitous can contact you in case of any issues ## Running After you've set everything up, you're ready to start the bot! diff --git a/config.json.example b/config.json.example index 8a74fba..eed8bc9 100644 --- a/config.json.example +++ b/config.json.example @@ -28,6 +28,6 @@ "voice_announcements": false }, "http": { - "user_agent": "Gleiswechsel-Discord-Bot" + "user_agent": "Gleiswechsel-Discord-Bot/1.0 (https://github.com/kaaninchen/Gleiswechsel)" } } \ No newline at end of file diff --git a/src/data/locales/de.yaml b/src/data/locales/de.yaml index 8aeb145..835a652 100644 --- a/src/data/locales/de.yaml +++ b/src/data/locales/de.yaml @@ -5,7 +5,7 @@ channel: short_name: "{train_name} nach {goes_to}" embeds: footer: - notice: "Daten bereitgestellt von https://transitous.org • Maps (C) CARTO (C) OpenStreetMap.org contributors" + notice: "https://transitous.org/sources/ • Maps (C) CARTO (C) OpenStreetMap.org contributors" info: description: "Abfahrt von {station} um {departure}. Ankunft um {arrival}" via: "Über" diff --git a/src/data/locales/en.yaml b/src/data/locales/en.yaml index ba6ccf2..9f108ec 100644 --- a/src/data/locales/en.yaml +++ b/src/data/locales/en.yaml @@ -5,7 +5,7 @@ channel: short_name: "{train_name} to {goes_to}" embeds: footer: - notice: "Data provided by https://transitous.org • Maps (C) CARTO (C) OpenStreetMap.org contributors" + notice: "Data provided by https://transitous.org/sources/ • Maps (C) CARTO (C) OpenStreetMap.org contributors" info: description: "Departure from {station} at {departure}. Arrival by {arrival}" via: "via" diff --git a/src/data/operators.py b/src/data/operators.py index c19dc96..549ba45 100644 --- a/src/data/operators.py +++ b/src/data/operators.py @@ -108,6 +108,10 @@ OPERATORS = { "logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/14/Stadtwerke_T%C3%BCbingen_logo.svg/330px-Stadtwerke_T%C3%BCbingen_logo.svg.png", "color": 0x439669 }, + "Südwestdeutsche Verkehrs-AG": { + "logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/30/SWEG_Logo.svg/330px-SWEG_Logo.svg.png?utm_source=de.wikipedia.org&utm_campaign=index&utm_content=thumbnail", + "color": 0x1A509A + }, "Tallink Grupp AS": { "logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Tallink_logo.svg/330px-Tallink_logo.svg.png", "color": 0x225197