hi. who is @turtle84375
quick question: are you actually reid or is this a joke that the actual reid is desperately trying to ascend
how do you just post a string? (without the author quote thing), just like the bare bone, /make waste of say hello world with request
just remove the stuff that is in the string
I tried, and just left the {“post”} but it didn’t work
…did you include the headers?
Wait, is it, post = requests.post("https://api.wasteof.money/posts", json = ("Hallo"))
no, it should be requests.post("https://api.wasteof.money/posts", headers = authJson, json = {"post": f"hello world"})
ok thanks alot I got it working, how do you make it run like once a day through replit
I really wouldn't recommend replit. If you need the bots to be run daily, I'd recommend that if you have a Linux machine like an rpi, you can make a cron job for it.
just wondering…. what posts of mine did you comment on which are now deleted?
[redacted]
wait did you delete your own comment? I thought it was one of my posts that were deleted
yeah
I deleted my comment
i see
Hmm, ok i made the bot, but after putting in my token and running it through replit, it say “error, cant complete this action while logged out” but i was logged in with waste of money running i another tab
did you triple click to get the full token?
still says that :/
hmm
run this code in your python shell
import requests,json;requests.post("https://api.wasteof.money/session", json={"username":"username here","password":"pwd here"}).json()
gave me same error :/
can I see your code?
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] (029485729345872039456374)"}
post = requests.post("https://api.wasteof.money/posts", headers = authJson, json = {"post": f"<h2>{author}</h2> <p>{quote}</p>"})
print(post.json())make authJson = {“Authorization”: requests.post(“https://api.wasteof.money/session”, {“username”:”here”,”password”:”pwd”).json()[“token”])}
So yeah, i haven’t change it to harry potter or anything yet, just pasted my token, and that was the only change
Hello there! We are a new startup website where a limited amount of creators will write tech-related articles for a wide audience. Would you like to join and write your own posts?
oh god, not you again
but is it “UpDaNews” or Codeleaf, because codeleaf is already a thing…