Display front history with pk;switch

Display system front history when the command `pk;switch` is issued without any arguments
This commit is contained in:
xBelladonna
2019-06-08 10:48:20 +09:30
committed by Astrid
parent ebc8ab1738
commit 1ec0683713
3 changed files with 9 additions and 7 deletions
@@ -244,7 +244,7 @@ async def system_fronthistory(ctx: CommandContext, system: System):
front_history = await pluralkit.utils.get_front_history(ctx.conn, system.id, count=10)
if not front_history:
raise CommandError("You have no logged switches. Use `pk;switch´ to start logging.")
raise CommandError("You have no logged switches. Use `pk;switch [member] [extra members...]` to start logging.")
for i, (timestamp, members) in enumerate(front_history):
# Special case when no one's fronting