|
|
@ -89,7 +89,7 @@ matrixclient.on('Room.timeline', function(event, room, resettimeline) {
|
|
|
|
if(commands[project] !== undefined) {
|
|
|
|
if(commands[project] !== undefined) {
|
|
|
|
let command = commands[project];
|
|
|
|
let command = commands[project];
|
|
|
|
|
|
|
|
|
|
|
|
let 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);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|