Include Profit field into webhook "purchased" notification

This commit is contained in:
Perchun Pak 2023-06-20 20:09:33 +02:00 committed by GitHub
parent 242b2835f7
commit 2458b9c373
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));
}