From 83ad79016287a57941c8b50826b31d1bfc820c80 Mon Sep 17 00:00:00 2001 From: blankie Date: Wed, 24 Aug 2022 21:37:51 +0700 Subject: [PATCH] Fix spoiler check --- redditbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redditbot.py b/redditbot.py index af7a015..0eb244c 100644 --- a/redditbot.py +++ b/redditbot.py @@ -123,7 +123,7 @@ async def main(): if not (nsfw and allow_nsfw): nsfw = cpp.over_18 if not (spoilers and allow_spoilers): - nsfw = cpp.spoiler + spoilers = cpp.spoiler if is_self and not allow_selfposts: continue if nsfw and not allow_nsfw: @@ -149,7 +149,7 @@ async def main(): if not (nsfw and allow_nsfw): nsfw = cpp.over_18 if not (spoilers and allow_spoilers): - nsfw = cpp.spoiler + spoilers = cpp.spoiler if is_self and not allow_selfposts: continue if nsfw and not allow_nsfw: