njmango / sales-bot

0 stars 2 forks source link

List personal sales #5

Open mcmcford opened 3 months ago

mcmcford commented 3 months ago

If a toggle isn't going to be added allowing users to request a large format table or a small format table for mobile, then users should have a command to list their orders from the database. Allowing them to view Buy/Sell orders that they made and that they may have forgotten about or may have never been actioned. This consolidated list of only their orders makes it easy for them to see the order numbers and delete them.

When slash commands are added, drop down lists could even be used with the /delete command. A user, uses the command /delete and if they don't specify an order number, it will show a list of all their orders and a dropdown allowing them to select a specific one. Upon selection, that one will be deleted and an ephemeral message will be sent to confirm or the initial message listing their orders will be updated (assuming the initial message isn't ephemeral)

Large format table:

Want to Buy:
+--------+------------------+-----------+------------------+-----------------------------+
| Order  | Item:Q           | Quantity  | Price (MP +/-)   | Seller                      |
+--------+------------------+-----------+------------------+-----------------------------+
| 11     | Recipes:Q0       | 500       | $207.5800 (-3%)  | PJ International originals  |
| 9      | Glass:Q0         | 5000      | $12.7400 (-2%)   | Plexxy Products             |
| 7      | Carbon fiber:Q0  | 50000     | $6.1000 (-0.10)  | Stormco Aerospace           |
+--------+------------------+-----------+------------------+-----------------------------+

Small/Mobile format table:

For Sale:
+-------------------+------+---------+
| #:Item:Q          | Qty  | Price   |
+-------------------+------+---------+
| 12:Fuselage:Q2    | 0.1k | 2560.000|
| 10:Construction:Q0| 0.0k | 2300.000|
| 6:Wing:Q2         | 0.1k | 1915.000|
| 5:Sand:Q1         | 10.0k| 2.230   |
+-------------------+------+---------+