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 ).
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. 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)
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. lol _________________ Current Site (2008) http://www.cuvou.com/
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
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)
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. It's kind of a clever way of tricking it. _________________ Current Site (2008) http://www.cuvou.com/
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?
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/
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
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. ]
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. ]
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??