diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 15:56:53 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 15:56:53 -0600 |
commit | 07496ac87ce982200474cc0af4afdf9665e6480c (patch) | |
tree | 872ef9a284e65ec35d83d283e8f705d69238d895 /src/cleaners/skyblock/bank.ts | |
parent | bf46c373c12f5058eac7c9aab3467de2637a7efb (diff) | |
download | skyblock-api-07496ac87ce982200474cc0af4afdf9665e6480c.tar.gz skyblock-api-07496ac87ce982200474cc0af4afdf9665e6480c.tar.bz2 skyblock-api-07496ac87ce982200474cc0af4afdf9665e6480c.zip |
add banking info
Diffstat (limited to 'src/cleaners/skyblock/bank.ts')
-rw-r--r-- | src/cleaners/skyblock/bank.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/bank.ts b/src/cleaners/skyblock/bank.ts new file mode 100644 index 0000000..7db7a37 --- /dev/null +++ b/src/cleaners/skyblock/bank.ts @@ -0,0 +1,14 @@ +import { cleanSkyblockProfileResponseLighter } from "./profile" + +export interface Bank { + balance: number + history: any[] +} + +export function cleanBank(data: any): Bank { + return { + balance: data?.banking?.balance ?? 0, + // TODO: make transactions good + history: data?.banking?.transactions ?? [] + } +}
\ No newline at end of file |