|
|
|
|
|
|
|
|
for x in range(10): |
|
|
for x in range(10): |
|
|
choice = random.choice(links) |
|
|
choice = random.choice(links) |
|
|
title = "**{}** from /r/{}\n".format(choice["data"]["title"], subreddit) |
|
|
title = "**{}** from /r/{}\n".format(choice["data"]["title"], subreddit) |
|
|
print(checks.is_nfsw_enabled()) |
|
|
|
|
|
if choice["data"]["over_18"] and not checks.nsfw_predicate(ctx): |
|
|
if choice["data"]["over_18"] and not checks.nsfw_predicate(ctx): |
|
|
return await self.bot.say("This server/channel doesn't have my NSFW stuff enabled. This extends to posting NFSW content from Reddit.") |
|
|
return await self.bot.say("This server/channel doesn't have my NSFW stuff enabled. This extends to posting NFSW content from Reddit.") |
|
|
url = Scrapper().retriveurl(choice["data"]["url"]) |
|
|
url = Scrapper().retriveurl(choice["data"]["url"]) |