☀️ Finished the deploy script ft random emojis 🔐

This commit is contained in:
Matei Adriel 2019-05-27 21:08:14 +03:00
parent c876138de2
commit 9adc5b04f6

View file

@ -6,9 +6,7 @@ const args = process.argv.splice(2)
const randomEmoji = () => random({ count: 1 })[0].character const randomEmoji = () => random({ count: 1 })[0].character
const mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1 const mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1
const message = `${randomEmoji()} const message = `${randomEmoji()} ${(mFlag) ? args[mFlag + 1] : "automated update"} ${randomEmoji()}`
${(mFlag) ? args[mFlag + 1] : "automated update"}
${randomEmoji()}`
console.log("Deploying..."); console.log("Deploying...");