例子:
user: "Hello!" - bot: "Hi! You wanna help with the codes?"
user: "No" - bot: "Okay!"
但是只有当用户打招呼时才会发生。我不希望他回答“好吧!” 当用户在任何句子中说“不”时......
我用来回复用户的机器人代码是:
client.on('message', async message => {
if (message.content.toLowerCase().includes("hello")) {
message.channel.send("Hi! You wanna help with the codes?");
}
});
对不起我的英语错误,我不会说那么多英语......
无论如何,有人可以帮助我吗?
特别感谢:https ://stackoverflow.com/users/5896453/naszos
喵喔喔
相关分类