= Removed old test and improved image utils

This commit is contained in:
Matthew Cech
2019-06-17 23:00:52 -07:00
parent e76bb6bb27
commit f4212f7c7d
4 changed files with 29 additions and 2 deletions
+7
View File
@@ -46,18 +46,25 @@ public class CommandColor extends Command
graphics.setColor(parsed);
graphics.fillRect(0, 0, sideLength, sideLength);
graphics.dispose();
GlobalLog.Log("2");
String tempFileName = ImageUtils.writeTempImageData(img, ".png");
File file = new File(tempFileName);
GlobalLog.Log("3");
KittyEmbed response = new KittyEmbed();
response.title = "Color Name";
response.color = parsed;
response.descriptionText = "`rgba` test\n`hex` test\n`hsv` test";
response.thumbnailURL = "attachment://" + tempFileName;
GlobalLog.Log("4");
res.CallEmbed(response);
ImageUtils.BlockingFileDelete(file);
GlobalLog.Log("5");
};