mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
readme
This commit is contained in:
@@ -180,6 +180,8 @@ 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.
|
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.
|
||||||
|
|
||||||
|
You don't have to restart the bot after placing new audio files in the folder.
|
||||||
|
|
||||||
#### `map:`
|
#### `map:`
|
||||||
The bot can generate a map of your route in the `/info` embed. Set `map` to `true` to enable.
|
The bot can generate a map of your route in the `/info` embed. Set `map` to `true` to enable.
|
||||||
|
|
||||||
|
|||||||
@@ -218,11 +218,6 @@ def generate_static_map(stops: dict, mode: str, operator: str, route_color: str)
|
|||||||
context = staticmaps.Context()
|
context = staticmaps.Context()
|
||||||
|
|
||||||
context.set_tile_provider(staticmaps.tile_provider_OSM)
|
context.set_tile_provider(staticmaps.tile_provider_OSM)
|
||||||
# It is against the law (and against your morals...) to not give
|
|
||||||
# the tileprovider attributions for their great work
|
|
||||||
# I only removed the attribution text because I really dislike the
|
|
||||||
# ugly white box that py-staticmaps adds. Credits are still visible in the
|
|
||||||
# embeds footer
|
|
||||||
|
|
||||||
stop_coords = [
|
stop_coords = [
|
||||||
staticmaps.create_latlng(
|
staticmaps.create_latlng(
|
||||||
|
|||||||
Reference in New Issue
Block a user