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