Merge pull request #4 from PerchunPak/patch-2

Include `Profit` field into webhook "purchased" notification
This commit is contained in:
Night 2023-06-20 19:38:16 +01:00 committed by GitHub
commit fc48ff15ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,6 +353,7 @@ public class Flipper {
.addField("Item:", name, true)
.addField("Price:", format.format(price), true)
.addField("Target Price:", format.format(target), true)
.addField("Profit:", df.format(target - price), true)
.addField("Profit Percentage:", df.format((double) (target - price) / price * 100f) + "%", true)
.setColor(Color.decode(color));
}