mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 08:40:01 +00:00
[overlays] Fix KoFi donation currency in eventfeed
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b1ceb29bfb
commit
1d192ad796
1 changed files with 3 additions and 3 deletions
|
@ -345,11 +345,11 @@ const app = createApp({
|
||||||
handleKoFiDonation(eventId, data, time) {
|
handleKoFiDonation(eventId, data, time) {
|
||||||
let text
|
let text
|
||||||
if (data.isSubscription && data.isFirstSubPayment) {
|
if (data.isSubscription && data.isFirstSubPayment) {
|
||||||
text = `${data.from} just started a monthly subscription of ${Number(data.amount).toFixed(2)}€`
|
text = `${data.from} just started a monthly subscription of ${Number(data.amount).toFixed(2)} ${data.currency}`
|
||||||
} else if (data.isSubscription && !data.isFirstSubPayment) {
|
} else if (data.isSubscription && !data.isFirstSubPayment) {
|
||||||
text = `${data.from} continued their monthly subscription of ${Number(data.amount).toFixed(2)}€`
|
text = `${data.from} continued their monthly subscription of ${Number(data.amount).toFixed(2)} ${data.currency}`
|
||||||
} else {
|
} else {
|
||||||
text = `${data.from} just donated ${Number(data.amount).toFixed(2)}€`
|
text = `${data.from} just donated ${Number(data.amount).toFixed(2)} ${data.currency}`
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addEvent({
|
this.addEvent({
|
||||||
|
|
Loading…
Reference in a new issue