wasteof.js is a node.js module that allows you to react with the wasteof.money api
- i dont know
- not complete coverage of the api (i think)
- socket.io included
node.js version needs.. i dont know, just make sure its up to date i guess
npm install wasteof.js
const wasteof = require("wasteof.js")
const client = new wasteof.Client()
client.on("ready", () => {
console.log("Logged in!")
})
client.on("onMention", (data) => {
if (data.mention?.type === "wall_comment") {
client.postWallComment("late", "heya!", data.mention.data.comment._id).catch((error) => console.log(error))
}
})
client.login("late", "FunnyAmongus123#5812")