mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 03:41:16 +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) {
|
||||
let text
|
||||
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) {
|
||||
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 {
|
||||
text = `${data.from} just donated ${Number(data.amount).toFixed(2)}€`
|
||||
text = `${data.from} just donated ${Number(data.amount).toFixed(2)} ${data.currency}`
|
||||
}
|
||||
|
||||
this.addEvent({
|
||||
|
|
Loading…
Reference in a new issue