|
|
@ -17,7 +17,6 @@ class EvalCommand extends Command {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async exec(message) {
|
|
|
|
async exec(message) {
|
|
|
|
async function update() {
|
|
|
|
|
|
|
|
const { stdout, stderr } = await exec('git pull');
|
|
|
|
const { stdout, stderr } = await exec('git pull');
|
|
|
|
const Embed = this.client.util.embed()
|
|
|
|
const Embed = this.client.util.embed()
|
|
|
|
.addField('stdout', stdout)
|
|
|
|
.addField('stdout', stdout)
|
|
|
@ -29,8 +28,6 @@ class EvalCommand extends Command {
|
|
|
|
console.log(`stdout: ${stdout}`);
|
|
|
|
console.log(`stdout: ${stdout}`);
|
|
|
|
console.error(`stderr: ${stderr}`);
|
|
|
|
console.error(`stderr: ${stderr}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
update();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = EvalCommand;
|
|
|
|
module.exports = EvalCommand;
|