第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在等待消息之后發(fā)送幾條等待消息

在等待消息之后發(fā)送幾條等待消息

蕪湖不蕪 2021-05-12 17:29:53
我正在尋求您的幫助。我正在嘗試發(fā)送一條消息,等待回復(fù),然后當用戶在時限內(nèi)答復(fù)時,它會發(fā)送另一條這樣的消息。我不知道你是否了解我。如果您需要更多信息,請不要回答。真摯地。我當前的代碼:const filter = m => m.author.id === message.author.id && m.author.id !== bot.user.id// CHOISIR LE NOM            message.reply("S'il vous pla?t choisissez un nom pour le tournoi.").then(r => r.delete(10000));            message.channel.awaitMessages(filter, {              max: 1,              time: 10000            }).then(collected => {               if(collected.first().content === "stop" || collected.first().content === "cancel"){                return message.reply("Création du tournoi annulé.")              }              let tournamentname = collected.first().content;              db.collection("tournois").findOneAndUpdate({"tournamentInformations.status": "active"}, {                $set: {                  "tournamentInformations.tournamentName": tournamentname                  }}, {upsert: true}, function(err,doc) { if (err) { throw err; } });              message.channel.send(":white_check_mark: | Vous avez défini le nom du tournoi à "+tournamentname);                }).catch(err => {                  console.log(err)                })// CHOISIR L'ORGANISATEUR            message.reply("S'il vous pla?t choisissez le nom de l'organisateur.").then(r => r.delete(10000));            message.channel.awaitMessages(filter, {              max: 1,              time: 10000            }).then(collected => {               if(collected.first().content === "stop" || collected.first().content === "cancel"){                return message.reply("Création du tournoi annulé.")              }              let organisateur = collected.first().content;              db.collection("tournois").findOneAndUpdate({"tournamentInformations.status": "active"}, {                $set: {                  "tournamentInformations.organizedBy": organisateur                  }}, {upsert: true}, function(err,doc) { if (err) { throw err; } });
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 122 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號