I had an idea to make a cool bot, and maybe we could make it together, but it would be a rock paper scissors bot. So you can comment your choise on the bot’s wall. And it will reply with rock or sccissor or paper (chosen randomly) and then will calculate the winner.
import requests
import json
quote = requests.get("https://api.breakingbadquotes.xyz/v1/quotes").json()[0]
author = quote["author"]
quote = quote["quote"]
print(quote)
authJson = {"Authorization": "[redacted] (your wasteof token)"}
post = requests.post("https://api.wasteof.money/posts", headers = authJson, json = {"post": f"<h2>{author}</h2> <p>{quote}</p>"})
print(post.json())
ty ty, can i turn this code into a harry potter quote bot, with credit to you?
and if you have a raspberry pi or something, make a cron job to run it
My hobbies are painting and programming… uh… I develop videogames? That’s a kind of cool fact…
This is a big, beautiful wall. It will be even greater than China’s.