no auto update if DOES include thing because i keep forgetting

!@
This commit is contained in:
Lamp 2021-08-23 20:44:44 -07:00
parent bb4049ac5e
commit 09fd78bd79

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) {