@lankybox01 OK HOW DO I GET AN AUTOMATED NODE.JS PROGRAM TO READ WALL MESSAGES AND FIND COMMAND COMMENTS LIKE MEE6 DID IM SUCH A DUMBASS WHEN IT COMES TO ACTUALLY MAKING SOMETHING

asking for my good bot friend: @notawkward

Jun 17, 2022, 9:06 PM
2 1 33

comments (single view)

all three answers don’t work, wasteof-client doesn’t have a debug thing to put type=module or whatever above

I THINK IT WAS A VERSION ISSUE WHYYY

nope

@ee what is happening what am i doing wrong as always

Can i see your code

const WasteOfSession = require('wasteof-client');
const io = require('socket.io-client');

let wasteof = new WasteOfSession("notawkward", "tastethemusk"); // might wanna use your env :p
let msgcount = 0; // default message count. It will listen to new messages
wasteof.login()
   .then(data => {
const socket = io("https://api.wasteof.money", {
  auth: {
    token: data,
  },
});
  socket.on('updateMessageCount', (newCount) => {
    if (newCount > msgcount) {
      msgcount = newCount;
        wasteof.getWallComments("notawkward", 0)
          .then(data => replyToComment(data.comments[0])); // gets data of latest comment. Now check if it was already replied to and respond to it
      } 
})
})
See more replies
View all comments