stuppid_bot

Лощаков-бот

Jun 6th, 2013
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. psto = {
  2.     al: 1,
  3.     act: 'a_send',
  4.     hash: cur.tabs[cur.peer].hash,
  5.     media: '',
  6.     msg: '',
  7.     title: '',
  8.     to: cur.peer,
  9.     ts: 'хуй'
  10. };
  11.  
  12. spam = function() {
  13.      var interval = setInterval(function() {
  14.          if ( !geByClass('captcha')[0] ) {
  15.              clearInterval(interval);
  16.              
  17.              var r = irand(100, 1000), s = '';
  18.              
  19.              for (var  i = 0; i < r; ++i) {
  20.                  s += irand(0, 1) ? 'ха' : 'ах';
  21.              }
  22.              
  23.              psto.msg = s;
  24.              
  25.              ajax.post('al_im.php', psto, { onDone: function() { console.log('сообщение отправлено'); } });
  26.              setTimeout(spam, 2000)          
  27.          }
  28.      }, 100);
  29.  };
  30.  
  31.  spam();
Advertisement
Add Comment
Please, Sign In to add comment