var exec = require('child_process').exec; module.exports = (bot, lib) => { lib.trigger.add({ name: 'gitpull', call: /^\!pull$/, level: 100, active: 1, func: (e) => { exec('cd ../../ & git pull', (error, stdout) => { if(error === null) e.reply(stdout); }); }, desc: 'gitpuller' }); };