Closed StupidRepo closed 12 months ago
I made ping.js and when I run my bot I get this:
Cannot use import statement outside a module
Code:
import { ICommand } from "wokcommands" export default { category: "Test", description: "Pong!", callback: ({ message }) => { message.reply("Pong!") } } as ICommand
If you are with JS you'll need to add
{ // ... "type": "module", // ... }
in package.json
I made ping.js and when I run my bot I get this:
Cannot use import statement outside a module
Code: