feature: add event listeners to get answers from Base.send method only when explicitly asked #47
@ -44,9 +44,8 @@ export default class Question extends Message {
|
|||||||
*/
|
*/
|
||||||
send(bot) {
|
send(bot) {
|
||||||
const answers = this._answers;
|
const answers = this._answers;
|
||||||
const expectAnswer = true;
|
|
||||||
|
|
||||||
return super.send(bot, expectAnswer).then(message => {
|
return super.send(bot).then(message => {
|
||||||
let answer;
|
let answer;
|
||||||
|
|
||||||
answers.forEach(function find(a) {
|
answers.forEach(function find(a) {
|
||||||
|
Loading…
Reference in New Issue
Block a user