是否有人使用MAC对Discord机器人进行了编码,并将ASCII-Table用作终端中的命令处理程序状态并启动,但是在Windows上它不是T?

发布于 2025-02-08 12:52:11 字数 500 浏览 1 评论 0原文

因此,就像问题所提出的那样,我通过VSC在MacBook上使用Discordjs v13软件包编码了一个Discord机器人,并且启动正常。表加载,命令全部工作,在Discord上没有“互动失败”消息,但是我试图在Windows桌面上托管机器人,并且由于某种原因,该机器人没有打开。就像桌子被卡住了,机器人被冻结了,但是当我切换回MacBook时, src =“ https://i.sstatic.net/gg4jx.png” alt =“ macBook终端”> ”

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, Macbook TerminalWindows Desktop Terminal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒冷纷飞旳雪 2025-02-15 12:52:11

您能显示您的代码,以便我看到它出了什么问题吗?但是,也许您有代码(等待pg(`$ {$ {process.cwd()}/commands/*/*。js`))或类似的东西?如果是的,则将其替换为:(等待pg(`$ {(process.cwd()。替换(/\\/g,“/”)}/commands/*/*。js`))< /代码>。那么一切都应该很好。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文