Julia 6 years ago
parent
commit
762eb8bf47
1 changed files with 4 additions and 0 deletions
  1. 4 0
      quizz.js

+ 4 - 0
quizz.js

@@ -382,6 +382,10 @@ QuizzBot.prototype.onMessageInternal = function(username, user, msg) {
         else
             this.bot.sendMsg(this.room, "Must be channel operator");
     }
+  else if (lmsg.startsWith("!repete")) {
+if (this.currentQuestion)
+this.bot.sendMsg(this.room, `#${this.currentQuestion.id} ${this.currentQuestion.question}`);
+}
     else if (lmsg.startsWith("!help")) {
         this.bot.sendMsg(this.room, "Besoin d'aide ? La liste des commandes utiles est sur ce site : https://git.knacki.info/irc.knacki.info/ircbot-quizz/src/master/quizz.md");
     }