diff --git a/src/modules/onReady.ts b/src/modules/onReady.ts index f442b68..7a2506d 100644 --- a/src/modules/onReady.ts +++ b/src/modules/onReady.ts @@ -5,7 +5,7 @@ import { Client } from "discord.js"; module.exports = { on_ready: async () => { console.log("A jedeš!"); - if (!process.argv[2]) return; + if (!process.argv[2] || process.argv[2] !== "0") return; const client: Client = module.exports.client; const admin = client.users.cache.get("221561136028450816"); if (!admin) return; diff --git a/start.sh b/start.sh index f93c797..629f04c 100644 --- a/start.sh +++ b/start.sh @@ -1,7 +1,7 @@ while true do cas=`date +"%s"` - if node . + if node . $? then echo stahuju update git stash