janeviemuz
This commit is contained in:
parent
a5d6425eec
commit
30cad5d050
@ -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;
|
||||||
|
|||||||
4
start.sh
4
start.sh
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user