remove double decleration of command

develop
lub 7 years ago
parent 5d18c804c5
commit b48b9a6137

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