【发布时间】:2020-10-18 08:27:24
【问题描述】:
if(message.content === "hello") {
message.channel.send("World");
}
if(message.content === "hi") {
message.channel.send("There");
}
我正在为我的机器人尝试一项新功能,但我不完全确定如何启动它。所以我有关于这条消息的命令。所以我想做的是当我向机器人发送Hello 时,它会回复World,如果我将消息编辑到hi,机器人也会编辑它的消息;从World 到There。
discord.js 版本:12.2.0
【问题讨论】:
-
你使用的是什么版本的 discord.js?
-
@Syntle v12.2.0
标签: javascript node.js bots discord discord.js