# Account sale bot
## Uploading an accountt
Basically, you'd run `!accounts add <account type> <runescape name> <price> <stock> <worker> <pictures>`
- account type = ironman | hardcore ironman | ultimate ironman | pure | main
- runescape name = whatever the accounts name is, can be a string
- price = a price in either gp or $, can parse this the same way you do for wallet amounts
- stock = a int, how many of that account we have
- worker = worker who created it, a member with the worker role
- pictures = relevant pictures, stored as pngs locally(or on site when thats up) or can be stored in db as base64 or something; this is optional
This would upload the account to a database, assign it an id(in order of addition) and make it available for sale.
Examples:
If you run `!accounts add pure dickbag 400m 2 @full *upload pictures*`
It would respond with `Added pure accounts 2022-2023`
If you run `!accounts add main minecraft 100m 1 @full`
It would respond with `Added main account 330`
## Listing the accounts
To do this you run `!accounts show <account type>`
- account type = ironman | hardcore ironman | ultimate ironman | pure | main
And it'd show a nice embed which would have a field for each account etc.
Example: Say you run `!accounts show pure`, the bot outputs
```markdown
| Name of Account 1 | Name of Account 2 |
|-------------------|-------------------|
| Attack: 90 | Attack: 45 |
| Strength: 90 | Strength: 99 |
| Defence: 45 | Stock: 1 |
| Stock: 4 | Price: 200m |
| Price: 50$ | <pics> |
| <pics> | |
[->][<-]
```
And you can scroll through the accounts with the emotes.
It would pull the stats from hiscores based on RSN
## Selling the accounts
To do this you run `!accounts sell <account type> <account id> <customer> <amount sold for>`(the price listed in the original adding command is a starting point, it'll be negotiated probably, so amount sold for is neccesary)
- account type = ironman | hardcore ironman | ultimate ironman | pure | main
- account id = a number, would be an account id, if it doesnt exist give an error
- customer = a member
- amount sold for = an amount in gp or $
Examples:
Say you run `!accounts sell pure 1112 @grian 400m`
It would respond with `Sold pure 1112 to @grian for 400m`
And it'd remove the account from the database and all that and we can handle payment through wallet commands.