🚹
This commit is contained in:
parent
7a16b15c88
commit
c876138de2
|
@ -3,9 +3,12 @@ import { exec } from "child_process"
|
|||
import { random } from "random-emoji"
|
||||
|
||||
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 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...");
|
||||
|
||||
|
|
7
types/random-emoji.d.ts
vendored
7
types/random-emoji.d.ts
vendored
|
@ -1,4 +1,9 @@
|
|||
export function haiku(options: any): any;
|
||||
export function random(options: {
|
||||
count: number
|
||||
}): string;
|
||||
}): {
|
||||
character: string,
|
||||
name: string,
|
||||
image: string,
|
||||
imageSrc: string
|
||||
}[];
|
||||
|
|
Loading…
Reference in a new issue