Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // quickcount pilpres 2019
- // coded by ibnusyawall
- var shell = require('shelljs'); // npm install --save shelljs
- var reque = require('request'); // npm install --savw request
- var warna = require('colors' ); // npm install --save colors
- warna.setTheme({ a: 'blue', b: 'green', c: 'red', d: 'yellow' });
- tampil = shell.echo; jalan = shell.exec;
- tampil(''); tampil(' ['.d + ' Quick Count PILPRES 2019 ' + ']'.d); tampil('');
- reque('http://terbebas.com/pilpres2019/jokowi', function(error, response, body) {
- hasil = body;
- tampil(' Jokowi'.c + ' - ' + 'Ma`ruf'.b + ' : ' + hasil);
- })
- reque('http://terbebas.com/pilpres2019/prabowo', function(error, response, body) {
- hasil = body;
- tampil(' Prabowo'.b + ' - ' + 'Sandi'.c + ' : ' + hasil);
- })
- reque('http://terbebas.com/pilpres2019/jumlah', function(error, response, body) {
- hasil = body;
- tampil(''); tampil(' [ '.d + hasil + ' ] '.d); tampil('');
- })
Add Comment
Please, Sign In to add comment