Advertisement
Guest User

Untitled

a guest
Mar 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. var casper = require('casper').create({
  2. viewportSize: {width: 1920, height: 1080}
  3. });
  4. casper.options.waitTimeout = 20000;
  5. var steamid = casper.cli.raw.get('steamid');
  6. var coins = casper.cli.raw.get('coins');
  7.  
  8. casper.start('http://www.csgodouble.com/?login');
  9. casper.waitForSelector('#loginForm', function() {
  10. this.fill('form[id="loginForm"]', { username: 'csgodoublebot01',password: 'test2132' }, true);
  11. });
  12. casper.on("page.initialized", function() {
  13. this.evaluate(function() {
  14. Audio=function(){ return { load: function(){}, play: function(){} } };
  15. });
  16. });
  17. casper.waitForUrl('http://www.csgodouble.com/index.php', function() {
  18. this.waitForText("Connected!", function() {
  19. this.evaluate(function(steamid, coins) {
  20. send({
  21. "type":"chat",
  22. "msg":'/send '+steamid+' '+coins,
  23. "lang":1
  24. });
  25. });
  26.  
  27. });
  28. },function () {
  29. this.captureSelector('error.png', 'body');
  30. });
  31. casper.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement