update status

This commit is contained in:
Kaaninchen
2026-07-20 22:11:07 +02:00
parent e289cdb7cf
commit 7e4c0ee14a
2 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ setup_commands(bot)
@tasks.loop(minutes=5) @tasks.loop(minutes=5)
async def change_status(): async def change_status():
status = random.choice(discord_status) status = random.choice(discord_status)
await bot.change_presence(activity=discord.Game(name=status)) await bot.change_presence(activity=discord.Game(name=f"{status} • /info"))
@bot.event @bot.event
async def on_ready(): async def on_ready():
@@ -30,4 +30,4 @@ async def on_application_command_error(ctx, error):
try: try:
bot.run(config['token']) bot.run(config['token'])
except: except:
print("An error occured while parsing the token (check the config!)", "fatal") print("Fehler beim parsen des token", "fatal")
+7 -2
View File
@@ -5,7 +5,12 @@ discord_status = [
"Störung an der Weiche", "Störung an der Weiche",
"Heute ohne Bordbistro", "Heute ohne Bordbistro",
"SEV ist eingerichtet", "SEV ist eingerichtet",
"BahnBonus Status",
"Gleiswechsel!", "Gleiswechsel!",
"Zug entgleist :(" "Zug entgleist :(",
"Die Bundespolizei ist informiert",
"Dieser Zug endet hier",
"Außerplanmäßiger Halt in Oberhausen Hbf",
"Verspätung aus vorheriger Fahrt",
"Der Zug hat keine Bremsen",
"Heute ohne Klimatisierung",
] ]