Send a request to approve or deny aa KOS addition.
Args:
kos_info: A dictionary of the form below, same as kos_info from should_cmdr_be_on_kos in cog.inara.
{
'is_friendly': True | False, # If the user is friendly or hostile,
'cmdr': String, # The name of cmdr.
'reason': String, # Reason to add cmdr,
'squad': String, # The squadron of the cmdr if known.
}
"""
# Check for dupes before bothering, KOS list should have unique cmdr names.
scanner=get_scanner('hudson_kos')
awaitscanner.update_cells()
cnt,row=scanner.find_dupe(cmdr)
cnt,row=scanner.find_dupe(kos_info['cmdr'])
ifcnt:
raisecog.exc.InvalidCommandArgs(f'Duplicate "{cmdr}" reported as {row[2]} on row {cnt} with reason: {row[-1]}.\n\nCheck sheet. KOS addition aborted.')
raisecog.exc.InvalidCommandArgs(f"Duplicate *{kos_info['cmdr']}* reported as {row[2]} on row {cnt} with reason: {row[-1]}.\n\nCheck sheet. KOS addition aborted.")