Skip to content

Commit

Permalink
Fixing skip logic
Browse files Browse the repository at this point in the history
  • Loading branch information
romulofff committed Mar 2, 2021
1 parent 1284635 commit ffe5189
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions JoguinhosGratis.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@
while True:
try:
for submission in subreddit.stream.submissions(skip_existing=True):

title = submission.title
url = submission.url
msg = ""
skip = False
for store in banned_stores:
if store in submission.url:
continue
if "%" in title:
skip = True
break
if skip:
continue
elif "%" in title:
if title[title.find("%")-3:title.find("%")+1] == "100%":
msg = "*-------------- ESSE É GRÁTIS --------------* \n"
msg += title + " \n" + url + " #gratis #free"
Expand Down

0 comments on commit ffe5189

Please sign in to comment.