This commit is contained in:
derpystuff 2022-06-17 21:55:19 +02:00
parent cf33bb87bb
commit 32be2cfb2d

View file

@ -21,7 +21,7 @@ module.exports = {
), ),
run: async (context, args) => { run: async (context, args) => {
await context.triggerTyping(); await context.triggerTyping();
let response = editOrReply(context, createEmbed("loading", context, "Updating bot...")) let response = await editOrReply(context, createEmbed("loading", context, "Updating bot..."))
try{ try{
execSync("git pull") execSync("git pull")
return await response.edit({embeds: [createEmbed("success", context, "Update complete.")]}) return await response.edit({embeds: [createEmbed("success", context, "Update complete.")]})