janeviemuz

This commit is contained in:
Histmy 2021-08-18 21:44:16 +02:00
parent a5d6425eec
commit 30cad5d050
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { Client } from "discord.js";
module.exports = {
on_ready: async () => {
console.log("A jedeš!");
if (!process.argv[2] || process.argv[2] !== "0") return;
if (process.argv.length > 2) return;
const client: Client = module.exports.client;
const admin = client.users.cache.get("221561136028450816");
if (!admin) return;

View File

@ -1,13 +1,15 @@
while true
do
cas=`date +"%s"`
if node . $?
if node . $neco
then
echo stahuju update
git stash
git pull
unset $neco
else
echo exit code byl $?
neco=neco
novejcas=`date +"%s"`
if (($cas+86400<$novejcas))
then