Cleaner reddit nsfw text

This commit is contained in:
Marco Thomas
2020-10-09 12:16:30 +02:00
parent 12f5b9651d
commit fdf38f2978

View File

@@ -45,9 +45,11 @@ class Reddit(commands.Cog):
if submission.over_18 and not ctx.channel.is_nsfw(): if submission.over_18 and not ctx.channel.is_nsfw():
await ctx.send("The post is marked as NSFW, but your text channel isn't!") await ctx.send("The post is marked as NSFW, but your text channel isn't!")
else: else:
text = f""
if submission.over_18: if submission.over_18:
await ctx.send("❗ NSFW ❗") text += "❗ NSFW ❗"
await ctx.send(f"'{submission.title}' by {submission.author.name} - 🔼 {submission.score}") text += "'{submission.title}' by {submission.author.name} - 🔼 {submission.score}"
await ctx.send(text)
await ctx.send(submission.url) await ctx.send(submission.url)