User Control Panel
Advertisements

HELP US, HELP YOU!

CksBot-AIM - Simple OSCAR Bot
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Bot Depot Forum Index -> Archived Bots
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sun Aug 08, 2004 7:35 pm    Post subject: Reply with quote

I've created a simple Net::OSCAR bot. All it does is have some basic handlers and it repeats messages sent to it, and has the buddy icon and typing status supports.

This bot is open domain, which means you can edit it and do whatever you want with it and you don't have to leave any kinds of copyrights in or give me credit for making it (although it would be nice if you did Wink ).

Here's what the readme file says:
Quote:
CksBot-AIM

A simple Net::OSCAR bot created by Chaos AI Technology.

What It Does
============
CksBot-AIM does nothing more than repeat your messages. It comes with
most of the basic handlers, and a sample Buddy Icon. It also comes with
Net::OSCAR 1.11 in its local "lib" folder, edited to work on Windows
machines.
Who It's For
============
CksBot-AIM is for Perl programmers. The bot is very simple and would
require some programming experience to develop it into your very own
bot.
Copyright Details?
==================
This bot is open-domain. That means that you may use the bot in any way
that you want, under no restrictions, and you don't even have to leave
any kind of copyrights in it. However, it would be nice to credit Cerone
Kirsle for creating the bot. Wink But it's not required.
__________________
Setting Up The Bot
==================
To set up your bot's connection data, edit "bot.pl" in a text editor such
as Notepad and fill in the variables for $screenname and $password according
to your own bot's data. Save it, and run "RunIt.bat" (running the BAT file
will allow the DOS window to stay open in case the bot dies due to errors)

__________________________________________________________________________

:: CksBot-AIM ::
Cerone Kirsle
Administrator
Chaos AI Technology
http://www.aichaos.com/


So, here it is. Enjoy!

Edit
Actually, I should say: it's open domain as long as you edit it. If you download it, change the name and release it that's just plain ripping. Razz lol

_________________
Current Site (2008) http://www.cuvou.com/
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: Sun Aug 08, 2004 7:55 pm    Post subject: Reply with quote

Nice to see some more AIM bots :rolleyes:
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Sun Aug 08, 2004 8:46 pm    Post subject: Reply with quote

Cool, not many barebones AIM code.
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
seanghatch2
Newbie
Newbie


Joined: 06 Feb 2005
Posts: 5

Reputation: 15.3Reputation: 15.3

PostPosted: Sun Feb 13, 2005 8:08 am    Post subject: Reply with quote

this is old old...but i was wondering if I could get a bit of support on this net::oscar bot. whenever I open it, all the includes load up nice, it connects to aim, then the console closes.

Interestingly, when I put an incorrect password in everything goes well. (according to wrong password standards anyway)

Any ideas?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sun Feb 13, 2005 2:28 pm    Post subject: Reply with quote

QUOTE(seanghatch2 @ Feb 13 2005, 03:08 AM)
this is old old...but i was wondering if I could get a bit of support on this net::oscar bot.  whenever I open it, all the includes load up nice, it connects to aim, then the console closes.

Interestingly, when I put an incorrect password in everything goes well.  (according to wrong password standards anyway)

Any ideas?

Yeah.

First of all, this bot comes with Net-OSCAR 1.11 in its local library. The current version of the module is like, 1.9, and fixes a lot of bugs. So delete the "lib" folder in this bot and install the newer module.

Also, to make it so the console window doesn't close itself (for ANY reason), run the bot using "RunIt.bat" instead of "bot.pl", the bat file will keep the window open even if the script crashes.

How RunIt.bat works, it has these DOS commands in it:
Code:
@echo off<br />perl bot.pl<br />pause


On Windows 2000 and up, DOS was programmed to close the window when the script was completed (so, if your script crashes, it's "completed" and the window closes). The batch file uses the pause command, which waits for user input before continuing, so that your batch file is never "completed" until you hit Enter. Razz It's kind of a clever way of tricking it.

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


Joined: 06 Feb 2005
Posts: 5

Reputation: 15.3Reputation: 15.3

PostPosted: Sun Feb 13, 2005 5:26 pm    Post subject: Reply with quote

I don't mean to be STUPID, but I'm no good at installing modules, could you give me a some pointers? I'm on cpan now and looking at the source, should I just drop that into lib?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sun Feb 13, 2005 5:33 pm    Post subject: Reply with quote

QUOTE(seanghatch2 @ Feb 13 2005, 12:26 PM)
I don't mean to be STUPID, but I'm no good at installing modules, could you give me a some pointers?  I'm on cpan now and looking at the source, should I just drop that into lib?

On CPAN, when you get to a page listing all the methods and stuff of a module, there's a "package name" at the top of the page (might look something like "Net-OSCAR-1.90").

Click that, and you go to a page that lists all the modules and stuff... and there's a "Download" link, that's to download it.

A lot of Perl module packages will have a "lib" folder - pretend that's YOUR lib folder, and all the files inside are relative to it (i.e. if the path within the download is "Net-OSCAR-1.90/lib/Net/OSCAR.pm", it would be just "lib/Net/OSCAR.pm" when you extract it).

Am I making any sense?

I guess the best thing to do is to totally extract the entire package into another folder, and then open the "lib" folder and copy all the modules into your perl/site/lib folder.

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


Joined: 06 Feb 2005
Posts: 5

Reputation: 15.3Reputation: 15.3

PostPosted: Sun Feb 13, 2005 5:47 pm    Post subject: Reply with quote

All set, thank you. Ill be happy to rep you when I get more than 5 posts heh.
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Mon Feb 14, 2005 6:09 am    Post subject: Reply with quote

CPAN is installed just like ppm try to typeing "cpan" from the command line, and you configure (all you really need is nmake) it.

Then you can type: install Net::OSCAR

_________________
[ matt ]
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Mon Feb 14, 2005 3:36 pm    Post subject: Reply with quote

Net::Oscar is available via PPM. Just type PPM at the command line prompt. Then search for it as shown in the example. When you find it, just type install 1 or install 2...whichever package number you want, although you'd ideally want the most recent version.

Code:
C:\>ppm<br />PPM - Programmer's Package Manager version 3.1.<br />Copyright (c) 2001 ActiveState SRL. All Rights Reserved.<br /><br />Entering interactive shell. Using Term::ReadLine::Stub as readline library.<br /><br />Type 'help' to get started.<br /><br />ppm> search oscar<br />Searching in Active Repositories<br />  1. Net-OSCAR [1.907] Implementation of AOL's OSCAR protocol for instant messaging (for interacting with AIM a.k.a. AOL IM a.~<br />  2. Net-OSCAR [1.906] Implementation of AOL's OSCAR protocol for instant messaging (for interacting with AIM a.k.a. AOL IM a.~<br />  3. Net-OSCAR [1.907] Implementation of AOL's OSCAR protocol for instant messaging (for interacting with AIM a.k.a. AOL IM a.~<br />ppm>

_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Mon Feb 14, 2005 4:35 pm    Post subject: Reply with quote

alot of times PPM isnt near as up to date, but in this instance they seem to be the same version.
_________________
[ matt ]
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: Mon Feb 14, 2005 4:58 pm    Post subject: Reply with quote

Surely it would be more efficient to make the PPM directly lookup the PODs of modules on cpan, and then download like that?
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Feb 14, 2005 6:47 pm    Post subject: Reply with quote

QUOTE(darkmonkey @ Feb 14 2005, 11:58 AM)
Surely it would be more efficient to make the PPM directly lookup the PODs of modules on cpan, and then download like that?

Good idea, maybe you could go program one! Very Happy

_________________
Current Site (2008) http://www.cuvou.com/
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: Mon Feb 14, 2005 7:16 pm    Post subject: Reply with quote

I could, but it's still not the main PPM, which everyone uses.

Actually, i'm bored, i'll go make it now (and then submit it to a superior coder to make special/better).

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
flyinghamster
Newbie
Newbie


Joined: 11 Mar 2005
Posts: 6

Reputation: 14.2

PostPosted: Fri Mar 11, 2005 7:36 am    Post subject: Reply with quote

OK I have spent hours now trying to get this bot to work. I am not experienced in Perl at all, at least not a few hours ago. I don't understand why I am having problems now though... Here is a message that I don't understand:

"is only available with the XS version..." what does this mean??
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Bot Depot Forum Index -> Archived Bots All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



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