@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
Getting error:
Hint: hit control+c anytime to enter REPL.
Hint: hit control+c anytime to enter REPL.
/home/runner/notawkward-bot/index.js:3
const WasteOfSession = require('wasteof-client');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/notawkward-bot/node_modules/wasteof-client/index.js from /home/runner/notawkward-bot/index.js not supported.
Instead change the require of /home/runner/notawkward-bot/node_modules/wasteof-client/index.js in /home/runner/notawkward-bot/index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/home/runner/notawkward-bot/index.js:3:24)
at async Promise.all (index 0) {
code: 'ERR_REQUIRE_ESM'
}
repl process died unexpectedly: exit status 1
Change
const WasteOfSession = require('wasteof-client');
const io = require('socket.io-client');
to
import WasteofClient from 'wasteof-client'
import { io } from 'socket.io-client'
nevermind, ill test stuff
Let me know
I dunno wasteof-client well. All I know is that you have to import it and socket.io-client as modules, and destructure io and Wasteof2Auth out of the libraries respectively.
maybe the update broke a bunch of code so ima clone the original wasteofreplit (still has old wasteofclient) and add the rest of the code to it
maybe ask ee if there is documentation