add bot command for bug reports
This commit is contained in:
parent
135b9f079a
commit
f207e7a258
6
dist/bot.js
vendored
6
dist/bot.js
vendored
@ -276,6 +276,12 @@ class OcrccBot {
|
|||||||
const message = responses[Math.floor(Math.random() * responses.length)];
|
const message = responses[Math.floor(Math.random() * responses.length)];
|
||||||
this.sendTextMessage(roomId, message, senderId);
|
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 {
|
try {
|
||||||
|
@ -266,6 +266,13 @@ class OcrccBot {
|
|||||||
const message = responses[Math.floor(Math.random() * responses.length)];
|
const message = responses[Math.floor(Math.random() * responses.length)];
|
||||||
this.sendTextMessage(roomId, message, senderId);
|
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 {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user