Skip to content

Commit

Permalink
Update Pyramid_StreamlabsSystem.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aseroff authored Mar 1, 2019
1 parent a079e83 commit b834e85
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Pyramid_StreamlabsSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b834e85

Please # to comment.