|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
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"]
|
|
|
|
@ -14,9 +16,4 @@ def post_discord_webhook(post):
|
|
|
|
|
discord_webhook_url = config.DISCORD_URL
|
|
|
|
|
r = requests.post(discord_webhook_url, data=msg)
|
|
|
|
|
r.raise_for_status()
|
|
|
|
|
if r.status.ok:
|
|
|
|
|
print(f"Posted #{post.id} to Discord")
|
|
|
|
|
return True
|
|
|
|
|
else:
|
|
|
|
|
print(f"Unable to post #{post.id} to Discord")
|
|
|
|
|
return False
|
|
|
|
|
print(f"Posted #{post.id} to Discord")
|
|
|
|
|