我如何让我的机器人从mysql验证行会ID

时间:2019-11-20 15:07:05

标签: mysql discord.js

module.exports = client => {
    console.log(`${client.user.tag} logging in...`);
    setTimeout(clientRun => {console.log(`${client.user.tag} logged and ready to go!\n`);},7000);
    var hour = moment().tz('Asia/Manila').format('HH');
    var stat;
    if (hour >= 0 && hour <= 17) {
        let id = client.user.???
        con.query(`SELECT * FROM boss WHERE id = ${id}`, (err, row) => {
            if (err) throw err;
            stat = row[0].stat;

基于上面的代码,我想获取行会ID并从数据库中验证/提取信息,并稍后将其用于嵌入式消息。

0 个答案:

没有答案