Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var casper = require('casper').create({
- viewportSize: {width: 1920, height: 1080}
- });
- casper.options.waitTimeout = 20000;
- var steamid = casper.cli.raw.get('steamid');
- var coins = casper.cli.raw.get('coins');
- casper.start('http://www.csgodouble.com/?login');
- casper.waitForSelector('#loginForm', function() {
- this.fill('form[id="loginForm"]', { username: 'csgodoublebot01',password: 'test2132' }, true);
- });
- casper.on("page.initialized", function() {
- this.evaluate(function() {
- Audio=function(){ return { load: function(){}, play: function(){} } };
- });
- });
- casper.waitForUrl('http://www.csgodouble.com/index.php', function() {
- this.waitForText("Connected!", function() {
- this.evaluate(function(steamid, coins) {
- send({
- "type":"chat",
- "msg":'/send '+steamid+' '+coins,
- "lang":1
- });
- });
- });
- },function () {
- this.captureSelector('error.png', 'body');
- });
- casper.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement