【发布时间】:2020-04-02 22:39:07
【问题描述】:
我正在编写一个 discord.js 机器人,每当我发送命令时,它都会给出两次响应。我已经得出结论,这是因为我运行的实例太多。我尝试删除实例,但它没有删除。有时它说“某些实例无法删除”,有时它根本不删除。
通过终端
SERVICE VERSION ID VM_STATUS DEBUG_MODE
default 20191208t223728 aef-default-20191208t223728-0l57 RUNNING
default 20191208t223728 aef-default-20191208t223728-jb53 RUNNING
default 20191208t223728 aef-default-20191208t223728-wpgm RUNNING
This is what the messages look like. There should only be one message, not three.
这是我的 package.json 的样子:
"name": "discord-bot",
"version": "1.0.0",
"description": "Custom bot for Chinese Discord server.",
"main": "index.js",
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js",
"build": "next build"
},
"keywords": [],
"author": "Jacob Villorente",
"license": "ISC",
"dependencies": {
"discord.js": "^11.4.2",
"discord.js-commando": "^0.10.0",
"dotenv": "^7.0.0",
"express": "^4.17.1",
"node-fetch": "^2.6.0",
"ytdl-core": "^1.0.3"
},
"devDependencies": {
"nodemon": "^1.18.11"
}
}
任何帮助将不胜感激。谢谢
【问题讨论】:
标签: node.js npm discord discord.js gcloud