Advertisement
b3gund4L

pilpres2019

Apr 19th, 2019
33,771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // quickcount pilpres 2019
  2. // coded by ibnusyawall
  3.  
  4. var shell = require('shelljs'); // npm install --save shelljs
  5. var reque = require('request'); // npm install --savw request
  6. var warna = require('colors' ); // npm install --save colors
  7.  
  8. warna.setTheme({ a: 'blue', b: 'green', c: 'red', d: 'yellow' });
  9.  
  10. tampil = shell.echo; jalan = shell.exec;
  11.  
  12. tampil(''); tampil(' ['.d + ' UnixsLabs Quick Count PILPRES 2019 ' + ']'.d); tampil('');
  13.  
  14.   reque('http://terbebas.com/pilpres2019/jokowi', function(error, response, body) {
  15.     hasil = body;
  16.     tampil('    Jokowi'.c + '  - ' + 'Ma`ruf'.b + ' : ' + hasil);
  17.   })
  18.  
  19.   reque('http://terbebas.com/pilpres2019/prabowo', function(error, response, body) {
  20.     hasil = body;
  21.     tampil('    Prabowo'.b + ' - ' + 'Sandi'.c + '  : ' + hasil);
  22.   })
  23.  
  24.   reque('http://terbebas.com/pilpres2019/jumlah', function(error, response, body) {
  25.     hasil = body;
  26.     tampil(''); tampil('  [ '.d + hasil + ' ] '.d); tampil('');
  27.   })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement