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 = { module.exports = {
on_ready: async () => { on_ready: async () => {
console.log("A jedeš!"); 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 client: Client = module.exports.client;
const admin = client.users.cache.get("221561136028450816"); const admin = client.users.cache.get("221561136028450816");
if (!admin) return; if (!admin) return;

View File

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