forked from lza_menace/suchwow
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
859 B
20 lines
859 B
import requests
|
|
from random import choice
|
|
from suchwow import config
|
|
from suchwow import wownero
|
|
|
|
|
|
intro = ["Whatup", "What is up", "What the fuck is up", "what in the fuck is up", "Yo"]
|
|
insults = ["fart sacks", "dick lips", "shit stains", "chodes", "cum guzzlers", "dipshits", "dicknipples", "turd burglars"]
|
|
|
|
|
|
def post_discord_webhook(post):
|
|
wallet = wownero.Wallet()
|
|
post_wow_address = wallet.get_address(account=post.account_index)
|
|
content = f"{choice(intro)} {choice(insults)}, check out the new SuchWow post #{post.id} from {post.submitter}! Send funds to [{post_wow_address}](https://wownero.club/address/{post_wow_address}) to show support!"
|
|
msg = {"content": content}
|
|
discord_webhook_url = config.DISCORD_URL
|
|
r = requests.post(discord_webhook_url, data=msg)
|
|
r.raise_for_status()
|
|
print(f"Posted #{post.id} to Discord")
|