mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
fix webhook text again
This commit is contained in:
parent
7599a3aa8a
commit
6fb983978f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ insults = ["fart sacks", "dick lips", "shit stains", "chodes", "dipshits", "dick
|
||||||
def post_discord_webhook(post):
|
def post_discord_webhook(post):
|
||||||
wallet = wownero.Wallet()
|
wallet = wownero.Wallet()
|
||||||
post_wow_address = wallet.get_address(account=post.account_index)
|
post_wow_address = wallet.get_address(account=post.account_index)
|
||||||
content = f"{choice(intro)} {choice(insults)}, new SuchWow post is up! #{post.id} by {post.submitter}. Tip WOW to `{post_wow_address}` to show support! {url_for('post.uploaded_file', filename=post.image_name)}"
|
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)})"
|
||||||
msg = {"content": content}
|
msg = {"content": content}
|
||||||
discord_webhook_url = config.DISCORD_URL
|
discord_webhook_url = config.DISCORD_URL
|
||||||
r = requests.post(discord_webhook_url, data=msg)
|
r = requests.post(discord_webhook_url, data=msg)
|
||||||
|
|
Loading…
Reference in a new issue