UNPKG

alireza-cli

Version:

Alireza-cli.js connects you the iranian kebabs of life

26 lines (22 loc) 902 B
#! /usr/bin/env node var vorpal = require('vorpal')() var opn = require('opn') var _ = require('lodash'); var Buffer = require('buffer').Buffer; var play = require('play-sound') const eW91dHViZV9saW5r = "aHR0cHM6Ly95b3V0dWJlLmNvbS93YXRjaD92PQ==" const Z29vZF9zdHVmZg0K = ["UDc4U3JGVmNSR28=="] const YnRvYQ = function(s){ return Buffer.from(s, ([]+{})[!+[]+!![]]+(+{}+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!+[]+!![]+!![]+!![]+!![]+!![]+[])+(!+[]+!![]+!![]+!![]+[])).toString() } vorpal.command('--party', "Sholay, sholay!!!").action(function(args, callback){ opn(YnRvYQ(eW91dHViZV9saW5r).concat(YnRvYQ(_.sample(Z29vZF9zdHVmZg0K)))) callback(); }) // Exits vorpal on completion of command // // Note: Excluding the following line of code makes the // cli tool run in repl mode. vorpal .on('client_command_executed', evt => process.exit(0)) .parse(process.argv)