From 489db4279e559b41bb874844370e9876666c1ba5 Mon Sep 17 00:00:00 2001
From: Supositware <loic.bersier1@gmail.com>
Date: Fri, 1 Mar 2019 19:32:09 +0100
Subject: [PATCH] I should stop testing in live

---
 commands/images/nolight.js | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/commands/images/nolight.js b/commands/images/nolight.js
index b4b7498b..4bf8c7d4 100644
--- a/commands/images/nolight.js
+++ b/commands/images/nolight.js
@@ -64,16 +64,13 @@ class nolightCommand extends Command {
 		});
 
 		async function apng() {
-			const { stdout, stderr } = await exec('apngasm -o img/nolight.png img/frame00*.png -s');
+			const { stdout, stderr } = await exec('apngasm -o img/nolight.png img/frame00*.png -s')
+				.then(() => message.channel.send({files: ['./img/nolight.png']}));
 			console.log(`stdout: ${stdout}`);
 			console.log(`stderr: ${stderr}`);
-			if (stdout.includes('all done')) {
-				return message.channel.send({files: ['./img/nolight.png']});
-			} else {
-				return message.channel.send('An error has occured :((');
-			}
 		}
 		apng();
+		return;
 	}
 }