diff --git a/commands/message/dev/pull.js b/commands/message/dev/update.js similarity index 84% rename from commands/message/dev/pull.js rename to commands/message/dev/update.js index 7c47377..eb6844b 100644 --- a/commands/message/dev/pull.js +++ b/commands/message/dev/update.js @@ -23,7 +23,8 @@ module.exports = { await context.triggerTyping(); let response = await editOrReply(context, createEmbed("loading", context, "Updating bot...")) try{ - execSync("git pull") + const r = execSync("git pull") + if(r.toString().includes("Already up to date.")) return await response.edit({embeds: [createEmbed("warning", context, "Already up to date.")]}) return await response.edit({embeds: [createEmbed("success", context, "Update complete.")]}) }catch(e){ console.log(e)