1
0
Fork 0

dunno what's happening

refactor/models
Bsian 2020-05-12 16:42:13 +01:00
parent 1464253675
commit 0ba05afa66
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export default class Util {
const writeFunction = (data: string|Buffer|Error) => {
if (data instanceof Error) error = true;
if (data instanceof Error) this.client.getDMChannel('253600545972027394').then((c) => c.createMessage('error'));
this.client.getDMChannel('253600545972027394').then((c) => c.createMessage(inspect(data, { depth: 0 })));
this.client.getDMChannel('253600545972027394').then((c) => c.createMessage(data.toString()));
output += `${data}`;
};
const cmd = childProcess.exec(command, options);