From 14642536756774d156caf9eca5e5a7f1afcb4195 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 12 May 2020 16:37:23 +0100 Subject: [PATCH] Test --- src/class/Util.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index 887bcc5..6192141 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -1,5 +1,5 @@ /* eslint-disable no-param-reassign */ -import { promisify } from 'util'; +import { promisify, inspect } from 'util'; import childProcess from 'child_process'; import nodemailer from 'nodemailer'; import { Message, PrivateChannel, GroupChannel, Member, User } from 'eris'; @@ -38,6 +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 }))); output += `${data}`; }; const cmd = childProcess.exec(command, options);