mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
oops
This commit is contained in:
parent
284df376fd
commit
321079d991
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ module.exports = {
|
||||||
try{
|
try{
|
||||||
const r = 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.")]})
|
if(r.toString().includes("Already up to date.")) return await response.edit({embeds: [createEmbed("warning", context, "Already up to date.")]})
|
||||||
|
|
||||||
let id = r.toString().match(/(?:.*?)\.\.([a-z0-9]{7})/)[1]
|
let id = r.toString().match(/(?:.*?)\.\.([a-z0-9]{7})/)[1]
|
||||||
return await response.edit({embeds: [createEmbed("brand", context, {description: `Update complete (${highlight(id)})`})]})
|
return await response.edit({embeds: [createEmbed("default", context, {description: `Update complete (${highlight(id)})`})]})
|
||||||
}catch(e){
|
}catch(e){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
return await response.edit({embeds: [createEmbed("error", context, "Update failed.")]})
|
return await response.edit({embeds: [createEmbed("error", context, "Update failed.")]})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue