mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-07-21 19:52:47 +00:00
weitere operator hinzugefügt
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ def setup_commands(bot: discord.Bot):
|
|||||||
@bot.slash_command(description="Steige in den nächsten Zug! Beachte das Discord Spam limit (2x in 10min)")
|
@bot.slash_command(description="Steige in den nächsten Zug! Beachte das Discord Spam limit (2x in 10min)")
|
||||||
@commands.cooldown(1, 600, commands.BucketType.guild)
|
@commands.cooldown(1, 600, commands.BucketType.guild)
|
||||||
async def umstieg(ctx):
|
async def umstieg(ctx):
|
||||||
ctx.defer()
|
await ctx.defer()
|
||||||
rename = await rename_vc(bot)
|
rename = await rename_vc(bot)
|
||||||
if not rename:
|
if not rename:
|
||||||
build_error_embed(rename)
|
build_error_embed(rename)
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
db_slogans = ["Senk ju vor träwelling wis Deutsche Bahn.", "Bitte beachten Sie die umgekehrte Wagenreihung.", "Zurückbleiben bitte!", "Alle reden vom Wetter. Wir nicht.", "Die Bahn macht mobil.", "Grün abgefahren"]
|
|
||||||
|
|
||||||
db_allgemein = {
|
db_allgemein = {
|
||||||
"logo": "https://marketingportal.extranet.deutschebahn.com/resource/blob/13602522/c53f806b9df966e144010b276af72dd2/Bild_09-data.png",
|
"logo": "https://marketingportal.extranet.deutschebahn.com/resource/blob/13602522/c53f806b9df966e144010b276af72dd2/Bild_09-data.png",
|
||||||
"color": 0xEC0016,
|
"color": 0xEC0016,
|
||||||
"slogan": db_slogans
|
"slogan": ["Senk ju vor träwelling wis Deutsche Bahn.", "Bitte beachten Sie die umgekehrte Wagenreihung.", "Zurückbleiben bitte!", "Alle reden vom Wetter. Wir nicht.", "Die Bahn macht mobil.", "Grün abgefahren"]
|
||||||
}
|
}
|
||||||
|
|
||||||
db_bawü = {
|
db_bawü = {
|
||||||
@@ -15,7 +13,8 @@ db_bawü = {
|
|||||||
OPERATOR_ALIASES = {
|
OPERATOR_ALIASES = {
|
||||||
"DB Regio AG Baden-Württemberg": db_bawü,
|
"DB Regio AG Baden-Württemberg": db_bawü,
|
||||||
"DB Regio Stuttgart GmbH": db_bawü,
|
"DB Regio Stuttgart GmbH": db_bawü,
|
||||||
"DB Fernverkehr": db_allgemein
|
"DB Fernverkehr": db_allgemein,
|
||||||
|
"DB Regio AG NRW": db_allgemein,
|
||||||
}
|
}
|
||||||
|
|
||||||
OPERATORS = {
|
OPERATORS = {
|
||||||
@@ -31,5 +30,9 @@ OPERATORS = {
|
|||||||
"Nederlandse Spoorwegen": {
|
"Nederlandse Spoorwegen": {
|
||||||
"logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/Logo_NS.svg/960px-Logo_NS.svg.png",
|
"logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/Logo_NS.svg/960px-Logo_NS.svg.png",
|
||||||
"color": 0X00337F
|
"color": 0X00337F
|
||||||
|
},
|
||||||
|
"eurobahn": {
|
||||||
|
"logo": "https://upload.wikimedia.org/wikipedia/commons/3/34/Digital_Logo_eurobahn.png",
|
||||||
|
"color": 0x005a9b
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -68,7 +68,7 @@ async def _schedule_next_umstieg(bot, arrival_iso):
|
|||||||
|
|
||||||
if wait_seconds > 0:
|
if wait_seconds > 0:
|
||||||
remaining = str(timedelta(seconds=wait_seconds))
|
remaining = str(timedelta(seconds=wait_seconds))
|
||||||
logger(f"Um {arrival.strftime('%H:%M:%S')} gehts weiter (in {remaining.split("."[0])})!...")
|
logger(f"Um {arrival.strftime('%H:%M:%S')} gehts weiter (in {remaining.split(".")[0]})!...")
|
||||||
await asyncio.sleep(wait_seconds)
|
await asyncio.sleep(wait_seconds)
|
||||||
logger("Zug angekommen, wähle neue Verbindung...")
|
logger("Zug angekommen, wähle neue Verbindung...")
|
||||||
await rename_vc(bot, scheduled=True)
|
await rename_vc(bot, scheduled=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user