diff --git a/dist/bot.js b/dist/bot.js index 9d48e67..dae23e8 100644 --- a/dist/bot.js +++ b/dist/bot.js @@ -276,6 +276,12 @@ class OcrccBot { const message = responses[Math.floor(Math.random() * responses.length)]; this.sendTextMessage(roomId, message, senderId); } + }, { + keyword: 'bug', + function: (senderId, roomId) => { + const message = `Please report the issue at ${this.config.bugReportUrl}`; + this.sendTextMessage(roomId, message, senderId); + } }]; try { diff --git a/src/bot.js b/src/bot.js index f8851f7..aced975 100644 --- a/src/bot.js +++ b/src/bot.js @@ -266,6 +266,13 @@ class OcrccBot { const message = responses[Math.floor(Math.random() * responses.length)]; this.sendTextMessage(roomId, message, senderId); } + }, + { + keyword: 'bug', + function: (senderId, roomId) => { + const message = `Please report the issue at ${this.config.bugReportUrl}` + this.sendTextMessage(roomId, message, senderId); + } } ] try {