add bot command for bug reports

This commit is contained in:
Sharon Kennedy 2022-01-12 12:05:19 -05:00
parent 135b9f079a
commit f207e7a258
2 changed files with 13 additions and 0 deletions

6
dist/bot.js vendored
View File

@ -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 {

View File

@ -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 {