code for the current version of wasteof.replit. please feel free to steal (with credit)

// logo
console.log("                          __                   ___                         __  __  __   ")
console.log(" .--.--.--..---.-..-----.|  |_ .-----..-----..'  _|   .----..-----..-----.|  ||__||  |_ ")
console.log(" |  |  |  ||  _  ||__ --||   _||  -__||  _  ||   _|__ |   _||  -__||  _  ||  ||  ||   _|")
console.log(" |________||___._||_____||____||_____||_____||__| |__||__|  |_____||   __||__||__||____|")
console.log("                                                                   |__|                 ")
console.log("frontends? what are those?")
console.log("___________________________________")
console.log("")
console.log("Type anything to begin.")
console.log("")
var ans = prompt("")
console.clear()
console.log("Let's login first.")
console.log("")
var ans = prompt("Type your username. ")
const user = ans
var ans = prompt("Type your password. ")
const pass = ans
console.clear()
console.log("Okay, now that you have logged in, you need to select an action.")
console.log("(if you see no errors, it worked!)")
console.log("")
console.log("1| post")
console.log("")
var ans = prompt("Type 1-10 ")
// login
const WasteOfSession = require("wasteof-client")
let wasteof = new WasteOfSession(user, pass)
if (ans == 1){
  console.clear()
  var posttext = prompt("Post contents? (can be html or plain text) ")
  wasteof.login()
  .then(async function() {
  await wasteof.post(posttext, null)
  })
}
console.clear()
console.log("Done, check for errors. If there are any, you might have entered the wrong login credidentials. Rerun this repl to do another action.")

comments (single view)

You can use try and catch for errors

the errors come from the wasteof api, not javascript errors

Wasteof-client will throw errors if the api errors

one question about wasteof.client, is it possible to change profile pictures using it?

No, back when i made it I wasn't good at node so i avoided doing that

do you know any other client that can do that?

or any way i can code it in node?

See more replies
View all comments