mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
notice for already updated
This commit is contained in:
parent
a3fe43c72c
commit
ef310b5f07
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue