From 0c3567c2ca28c9b4da94760283dad92fa33d4598 Mon Sep 17 00:00:00 2001 From: Tyler-A Date: Thu, 9 Jan 2020 17:39:42 -0600 Subject: [PATCH] Fix: Make offline happen when channel is offline, not online --- src/Twitch.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Twitch.ts b/src/Twitch.ts index 2c925f6..cdab27c 100644 --- a/src/Twitch.ts +++ b/src/Twitch.ts @@ -1,7 +1,7 @@ // // Twitch.ts // -// Written by: Tyler Akins (2020/01/06 - 2020/01/08) +// Written by: Tyler Akins (2020/01/06 - 2020/01/09) // @@ -71,10 +71,10 @@ export const START_BOT = async () => { .then((response: boolean) => { // Ensure the user is live - if (response) { + if (!response) { data["offline"].total_bits += bits; data["offline"].donations.push(bits); - data["offline"].donators.push(donator) + data["offline"].donators.push(donator); } else { // Data already exists