|
|
@ -61,11 +61,9 @@ matrixClient.on('Room.timeline', function(event, room, resetTimeline) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
project = project[1];
|
|
|
|
project = project[1];
|
|
|
|
|
|
|
|
|
|
|
|
let command = commands[project];
|
|
|
|
const command = commands[project];
|
|
|
|
|
|
|
|
|
|
|
|
if(command !== undefined) {
|
|
|
|
if(command !== undefined) {
|
|
|
|
const command = commands[project];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const args = body.match(command.regex);
|
|
|
|
const args = body.match(command.regex);
|
|
|
|
if(args === null) {
|
|
|
|
if(args === null) {
|
|
|
|
matrixClient.sendNotice(room.roomId, 'usage: ' + command.usage);
|
|
|
|
matrixClient.sendNotice(room.roomId, 'usage: ' + command.usage);
|
|
|
|