notice for already updated

This commit is contained in:
derpystuff 2022-06-17 21:59:45 +02:00
parent a3fe43c72c
commit ef310b5f07

View file

@ -23,7 +23,8 @@ module.exports = {
await context.triggerTyping(); await context.triggerTyping();
let response = await editOrReply(context, createEmbed("loading", context, "Updating bot...")) let response = await editOrReply(context, createEmbed("loading", context, "Updating bot..."))
try{ 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.")]}) return await response.edit({embeds: [createEmbed("success", context, "Update complete.")]})
}catch(e){ }catch(e){
console.log(e) console.log(e)