make command a const

master
lub 7 years ago
parent c928a24f51
commit de8d1c5e1a

@ -87,7 +87,7 @@ matrixclient.on('Room.timeline', function(event, room, resettimeline) {
project = project[1];
if(commands[project] !== undefined) {
let command = commands[project];
const command = commands[project];
const args = body.match(command.regex);
if(args === null) {