From 28bd3e3f9f486ed6edab17d5cd2f61dacfe50753 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 28 Jul 2021 12:29:49 -0700 Subject: [PATCH] Very mini update. --- commands/extra/color.js | 6 +++--- start.bat | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/commands/extra/color.js b/commands/extra/color.js index f0504c3..80d9729 100644 --- a/commands/extra/color.js +++ b/commands/extra/color.js @@ -20,12 +20,12 @@ module.exports = { run: async(client, message, args) => { let ramcolor = colourRandom(); let img = await new DIG.Color().getImage(ramcolor); - let attach = new MessageAttachment(img, "color.png"); + let attachment = new MessageAttachment(img, "color.png"); const embed = new MessageEmbed() .setColor(ramcolor) .setTitle("Random Color") .setDescription(['Your color is `',ramcolor,'`'].join('')) - message.channel.send(embed); - message.channel.send(attach); + .setImage('attachment://color.png') + message.channel.send({ embed, files: [attachment] }); } } diff --git a/start.bat b/start.bat index d681aad..5ba1590 100644 --- a/start.bat +++ b/start.bat @@ -1,10 +1,10 @@ @ECHO OFF title ServerSMP - BOT -:Minecraft +:Robot echo. echo ==================================== -echo Starting the server up. Please allow -echo the server some time to start. +echo Starting the bot up. Please allow +echo the bot some time to start. echo ==================================== echo. node index.js @@ -18,4 +18,4 @@ echo ==================================== echo. timeout 5 ping 1.1.1.1 -n 1 -w 3000 >nul -goto Minecraft \ No newline at end of file +goto Robot