use direct link

This commit is contained in:
lza_menace 2020-10-29 10:23:47 -07:00
parent 6fb983978f
commit 91ce9c41c6

View file

@ -12,7 +12,7 @@ insults = ["fart sacks", "dick lips", "shit stains", "chodes", "dipshits", "dick
def post_discord_webhook(post):
wallet = wownero.Wallet()
post_wow_address = wallet.get_address(account=post.account_index)
content = f"{choice(intro)} {choice(insults)}, new SuchWow post is up! Tip WOW to `{post_wow_address}` to show support! [#{post.id} by {post.submitter}]({url_for('post.uploaded_file', filename=post.image_name)})"
content = f"{choice(intro)} {choice(insults)}, new SuchWow post #{post.id} by {post.submitter} is up! Tip WOW to `{post_wow_address}` to show support! {url_for('post.uploaded_file', filename=post.image_name)}"
msg = {"content": content}
discord_webhook_url = config.DISCORD_URL
r = requests.post(discord_webhook_url, data=msg)