This commit is contained in:
Matei Adriel 2019-05-27 21:07:48 +03:00
parent 7a16b15c88
commit c876138de2
2 changed files with 10 additions and 2 deletions

View file

@ -3,9 +3,12 @@ import { exec } from "child_process"
import { random } from "random-emoji" import { random } from "random-emoji"
const args = process.argv.splice(2) const args = process.argv.splice(2)
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 = `${random({count: 1})} ${(mFlag) ? args[mFlag + 1] : "automated update"} ${random({count: 1})}` const message = `${randomEmoji()}
${(mFlag) ? args[mFlag + 1] : "automated update"}
${randomEmoji()}`
console.log("Deploying..."); console.log("Deploying...");

View file

@ -1,4 +1,9 @@
export function haiku(options: any): any; export function haiku(options: any): any;
export function random(options: { export function random(options: {
count: number count: number
}): string; }): {
character: string,
name: string,
image: string,
imageSrc: string
}[];