CheesiestMaster / armcobot

GNU General Public License v3.0
1 stars 1 forks source link

/units function to display a table with a given players Units. #37

Closed Whitehowle closed 2 weeks ago

Whitehowle commented 3 weeks ago

This is related to issue #28, I'm not sure if this is what you had in mind here and I'm also a little wary of the way I format this data to display to the user but I couldn't find an example where we had displayed data before.

Whitehowle commented 3 weeks ago

Do you have a better recommendation for displaying the data? I suspect this isn't the best way to deal with the data, especially with the Name column being up to 200+ characters potentially. Seems a bit brute forced this way.

CheesiestMaster commented 3 weeks ago

Names will be capped at 30?, just do {name} ({type}) "{callsign if unit.status == ACTIVE else ""}" {status}

nweissoertel commented 3 weeks ago

Also shouldn't it be filtered by unit type and ao? because just a list of ALL units isn't that helpful, the original intention was to find a unit by it's type for something like evac