User Control Panel
Advertisements

HELP US, HELP YOU!

Dos Bot v. 3.0 Last Updated 7/29/05

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage
View unanswered posts
Author Message
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Wed Jul 20, 2005 12:59 pm    Post subject: Dos Bot v. 3.0 Last Updated 7/29/05 Reply with quote

Current Features:

    Create Files
    Open Files
    Delete Files
    Chat with Dos Bot
    Teach Dos Bot new things
    Easy Add Command Feature


Stuff to Expect:

    Copy Files
    Move Files
    Download files from the internet
    Bug Fixes
    More chat features (commands, teaching, etc)


In Dos Bot v. 2.0 I removed the AIM chat feature, and changed it to a chat with Dos Bot. This chat is a lot easier to manage, and will have more features coming soon. I do not know if AIM/MSN chatting will be added, but if they are, it probably won't be until a MUCH later version.

To add Commands to Dos Bot (versions 3.0 and up), add a command to the commands folder. If the command has you opening another file inside the commands folder, be sure to use ./commands/filename.ext as the path. After that, just type !filename to run the command.

Download:

Dos Bot v. 1.0
Dos Bot v. 1.1
Dos Bot v. 2.0
Dos Bot v. 3.0

NOTE: The downloads don't work right now. They will work once I finish transfering my hosted files


Last edited by Cheater on Wed Aug 17, 2005 11:40 am; edited 4 times in total
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Wed Jul 20, 2005 2:42 pm    Post subject: Reply with quote

So wait, you can chat to AIM from DOS?

Edit: syntax error. Please at least test it a BIT before you release.

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Wed Jul 20, 2005 3:56 pm    Post subject: Reply with quote

He did say it had bugs - and didn't say it worked.. Razz
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Wed Jul 20, 2005 4:43 pm    Post subject: Reply with quote

Your bot isn't going to work. Like all others who've attempted these kinds of bots, you're using <STDIN>.

Code:
        sub im_in {
                my($oscar, $client, $msg, $is_away) = @_;
                print "[AWAY] " if $is_away;
      $msg =~ s/<(.|\n)+?>//g;
                print "$client: $msg\n\n";
      $reply = <STDIN>;
      chomp $reply;
      if ($reply eq "!menu") {
         &menu;
      }
      else {
         $oscar->send_typing_status ($client,TYPINGSTATUS_STARTED);
         sleep(3);
         $oscar->send_im($client,$reply);
         $oscar->send_typing_status ($client,TYPINGSTATUS_FINISHED);
      }
        }

   sub signon_done {
      my($oscar) = @_;
      open (BUDDYLIST, ">buddylist.txt");
      print BUDDYLIST "";
      close (BUDDYLIST);
      print "$screenname has finished connecting to AIM\n\n\n";
      print "To access the menu at any time, type !menu\n\n\n";
      &menu;
   }


Do you know what STDIN does? It pauses your script until the user enters a value and hits enter.

Therefore, you cannot use STDIN like you are after signing onto a messenger, the messengers are required to keep do_one_loop'ing and when you keep stopping to wait for somebody to type out a reply, it's not gonna be looping and your bot may be dropped from AOL.

If you're going to keep this up, don't even bother with an MSN bot for it, because MSN is even less tolerant than AIM, it seems that MSN will drop you after 5 to 10 seconds of failing to loop (at least in my experience).

So you'd better hope you're a damn fast typer and are always on the ball or your bot's gonna be dropped while it's waiting for you to type something.

Look into Term::ReadKey, it'll allow you to type while the script keeps running by itself. That's probably your best bet if you want to keep this up. Either use that or threads, or POE, or learn Tk and make a GUI since GUI's are easier to keep track of while still looping the bots.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Jul 20, 2005 7:37 pm    Post subject: Reply with quote

lol i have tryed to explain this to him....about it being blocking, but....
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Wed Jul 20, 2005 8:27 pm    Post subject: Reply with quote

darkmonkey wrote:
So wait, you can chat to AIM from DOS?

Edit: syntax error. Please at least test it a BIT before you release.


It worked for me, without any errors coming up.

@Cer: I know what you are saying. I've been trying to find a way around that. I'll look into Term::ReadKey and maybe add it to a later version
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Thu Jul 21, 2005 8:15 am    Post subject: Reply with quote

syntax error at DosBot.pl line 206, near "else"
Execution of DosBot.pl aborted due to compilation errors.
Press any key to continue . . .

How can that not appear for you? Are you using Perl 1.2 or something?

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Thu Jul 21, 2005 1:00 pm    Post subject: Reply with quote

I tested it again. I think I might have deleted the bracket when I copied it. But version 1.1 should fix that.
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Thu Jul 21, 2005 1:45 pm    Post subject: Reply with quote

darkmonkey wrote:
syntax error at DosBot.pl line 206, near "else"
Execution of DosBot.pl aborted due to compilation errors.
Press any key to continue . . .

How can that not appear for you? Are you using Perl 1.2 or something?


lmao.

@ Cheater: Why would you copy your own code? Why not just zip it?
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Thu Jul 21, 2005 8:15 pm    Post subject: Reply with quote

I copied it a few times. I originally had all the different things in seperate files, and copied them into one file. I also copied it thinking I would just post the whole code here. Then I decided to just zip it. So in that process it got deleted.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group