mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-07-21 11:43:30 +00:00
update status
This commit is contained in:
@@ -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
@@ -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",
|
||||||
]
|
]
|
||||||
Reference in New Issue
Block a user