rename commandUtil to commands

master
lub 7 years ago
parent f0e11a0289
commit 98463dea56

@ -2,7 +2,7 @@ const fs = require('fs');
const remoteExec = require('./remoteExec.js');
const sdk = require('matrix-js-sdk');
const yaml = require('js-yaml');
const commandUtil = require('./commands.js');
const commands = require('./commands.js');
global.config = yaml.safeLoad(fs.readFileSync('config.yaml'));
const matrixClient = sdk.createClient({
@ -72,7 +72,7 @@ matrixClient.on('Room.timeline', function(event, room, resetTimeline) {
command.exec(args, room, event);
}else{ //command not found
let tmp = commandUtil.fetchCommand(project, commands);
let tmp = commands.fetchCommand(project, commands);
let suggestions = "";
for(let i = 0; i < tmp.length; i++){
suggestions += "\n"+tmp[i];