From b834e85469255569acfc0dcca57f8e4c5d05575c Mon Sep 17 00:00:00 2001 From: Andrew Seroff Date: Fri, 1 Mar 2019 15:43:30 -0600 Subject: [PATCH] Update Pyramid_StreamlabsSystem.py --- Pyramid_StreamlabsSystem.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Pyramid_StreamlabsSystem.py b/Pyramid_StreamlabsSystem.py index 10e33cd..a344a76 100644 --- a/Pyramid_StreamlabsSystem.py +++ b/Pyramid_StreamlabsSystem.py @@ -99,13 +99,15 @@ def Execute(data): Parent.AddPoints(data.User,data.UserName,reward) reset() elif (count > 1): - reset() if (data.UserName == user): - reset() Parent.SendStreamMessage(settings["responseChoked"].replace("$user", data.UserName)) else: - reset() - Parent.SendStreamMessage(settings["responseBlocked"].replace("$user", data.UserName)) + Parent.SendStreamMessage(settings["responseBlocked"].replace("$user", data.UserName)) + user = "" + msg = "" + count = 0 + width = 0 + desc = 0 else: if (len(data.Message.strip().split(" ")) == 1): user = data.UserName @@ -116,7 +118,11 @@ def Execute(data): reset() elif (count > 1): Parent.SendStreamMessage(settings["responseBlocked"].replace("$user", data.UserName)) - reset() + user = "" + msg = "" + count = 0 + width = 0 + desc = 0 else: if (len(data.Message.strip().split(" ")) == 1): user = data.UserName