【发布时间】:2018-07-06 02:32:33
【问题描述】:
所以我想用 node.js 检查我的数据库中是否有某种文本数据
if(db.run("message.author.username IN (participations|name)")) {
db.run("INSERT INTO participations(name, info) VALUES (?, ?)", [message.author.username, message.content]);
message.author.send("Teilnahme bestätigt!");
} else {
message.author.send("Du nimmst schon teil!");
};
if().. 部分不起作用,没有if() 的其他所有部分也起作用。
有没有办法正确使用它?
【问题讨论】:
标签: javascript node.js sqlite discord.js