no auto update if DOES include thing because i keep forgetting
!@
This commit is contained in:
parent
bb4049ac5e
commit
09fd78bd79
2
www.js
2
www.js
@ -11,7 +11,7 @@ app.get("/update", (req, res) => {
|
||||
return res.status(400).send("Signature verification failed");
|
||||
let data = JSON.parse(req.query.payload);
|
||||
res.sendStatus(200);
|
||||
if (!data.commits.some(commit => commit.message.includes("!@"))) return;
|
||||
if (data.commits.some(commit => commit.message.includes("%%"))) return;
|
||||
child_process.exec("git pull", function(error) {
|
||||
if (error) return void client.channels.resolve(config.bot_channel)?.send(`git pull: ${error.message}`);
|
||||
child_process.exec("npm install", async function(error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user