so like the question poses, I coded a Discord bot using DiscordJS V13 package on my macbook via VSC and it launches just fine. The table loads, the commands all work, no "interaction failed" messages on Discord, but I'm trying to host the bot on my windows desktop and for some reason the bot doesn't turn on. It's like the table gets stuck loading and the bot is frozen, but when I switch back to my macbook,
CodePudding user response:
can you show your code, so I can see what's wrong with it? But maybe you have in code (await PG(`${process.cwd()}/Commands/*/*.js`))
or something similar? if yes replace it with this: (await PG(`${(process.cwd().replace(/\\/g, "/"))}/Commands/*/*.js`))
. Then everything should be fine.