Feb 23 2010 Programming

I've totally re-written the code for this Perl Pidgin Yahoo plugin.
It is the BEST bot ignoring tool ever!  

The old plugin was more than 2,500 lines. I've trimmed it to 1,500 and seperated the code into 4 files. Now it does more with less and all bugs have been worked out.

The old plugin is on this site here. Refer to that for basic functionality.
You can now edit the regexes and all settings on the fly. There is just too much to list here in this limited space. Download the zip and extract into your Pidgin plugins directory. Then read the included readme file.

Download


[edit April 15, 2010]
Downloaded almost 500 times and I'm wondering what people think.
So if you could leave a comment or drop me an email it will be appreciated. I'd especially like to know platform specifics. Here's what I do know already:

Slackware 12.0 and Pidgin 2.6.5 works fine.
Windows XP and Pidgin 2.6.3 works fine.

As you can see not much. Volunteer as a tester and you will get your name in the credits!

[edit October 14, 2010]
Updated to version 1.03.
Fixed multi-bot matching.
Fixed flowers arg count.
Added white font bot pattern matching.
Added debug output for unsupported OS.
Corrected friend triggers.

1,100 downloads!

[edit September 3, 2012]
3,898 downloads.

[edit December 16, 2012]
This plugin no longer functions due to the fact Yahoo! has closed down public chatrooms. I hope I have learned my lesson about programming for closed protocols.

Final Tally: 4221 downloads.

   
Comments
Feb 28 2010
Comment #1 posted by vivek at 12:45 am

dont make it open source man

Apr 8 2010
Comment #2 posted by Frank at 10:27 pm

I've got it installed into Pidgin 2.6.6 on Ubuntu, and I keep getting the following in my debug log. It doesn't look lie it sees any nicknames. What am I doing wrong?

(22:23:38) bOt_tOOls_relOAded: :: setting command from join
(22:23:38) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:38) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:23:44) bOt_tOOls_relOAded: :: adding  to list joined.
(22:24:19) bOt_tOOls_relOAded: :: adding  to list joined.
(22:24:35) bOt_tOOls_relOAded: :: removing  from nicklist left.
(22:24:47) bOt_tOOls_relOAded: ::  left but wasn't in any list.
(22:25:05) bOt_tOOls_relOAded: :: adding  to list joined.

Apr 8 2010
Comment #3 posted by Eric at 11:27 pm

Frank:
A bug was introduced in version 2.6.6 which breaks perl plugins. It's been reported and fixed but unfortunately not to be released until version 2.7.0.

There's a patch http://developer.pidgin.im/ticket/11431 but that requires you to compile pidgin yourself.

May 14 2010
Comment #4 posted by Greg at 4:24 pm

I'm running pidgin 2.7.0 on Windows XP.
I've tried putting the files in Pidgin\plugins and Pidgin\plugins\perl, but they don't appear in Tools->Plugins. I've got perl installed (I presume that it has to be in the first place?).
Any ideas?

Thanks!
Greg

May 16 2010
Comment #5 posted by Eric at 2:33 pm

Greg:
Open Help>Debug then open Tools>Plugins. Go back to the debug window press pause and read what's been output for clues.

May 17 2010
Comment #6 posted by Greg at 12:28 pm

Hi, Eric:

Ha, good call! Here's something:
plugins: C:\Program Files\Pidgin\plugins\perl.dll is not loadable: `C:\Program Files\Pidgin\plugins\perl.dll': The specified module could not be found.

I don't see much information about perl.dll. Is it a pidgin plugin? Where can I get it?

Thanks!
Greg

May 17 2010
Comment #7 posted by Greg at 12:34 pm

Doh, wait. 'C:\Program Files\Pidgin\plugins\perl.dll' *is* there. Any ideas?

May 20 2010
Comment #8 posted by Eric at 4:30 pm

For the record I went over this with Greg and his problem was Active Perl.
Use Strawberry Perl if you want this to run on windows.

Jun 29 2010
Comment #9 posted by Ehsan at 5:37 am

Hi, thanks for your good plugin.
but it doesn't have any options to enable private messages, when i activate plugin,
no one can send me messages except in chat rooms(in yahoo).

Jun 30 2010
Comment #10 posted by Eric at 11:39 pm

Ehsan:
Open the global variables file and change the value of $ignore_ims from 1 to 0. Should be near line 29.

Jul 1 2010
Comment #11 posted by Ehsan at 1:54 pm

Works! wow! there is many options!!
Thanks man, really great plugin, keep it up ;)
best regards

Jul 5 2010
Comment #12 posted by mrbill3422 at 11:39 am

Hello I need help.. i am on windows vista 64 bit and whenever I try to extract the bot tools plugin..i keep getting access denied...

And when i do finally get the plugin into the folder..when I try to check the plugin from pidgin it will not load .......

Any advice ??

Jul 5 2010
Comment #13 posted by Eric at 12:05 pm

mrbill3422:
I'm assuming you have Strawberry Perl. What do you see in debug window when you try to load? Probably a path error. I've tried asking a few x64 users but no luck. Here's what you do:
Open bOt_tOOls_2010.pl
Look near line 901 and change plog("initializing ::"); to plog("initializing :: $^O");
Save it then see what $^O (that's the letter o) expands to in the debug as you try to load.
Use that info to modify line 904 which begins elsif ( $^O eq 'MSWin32' )
Done.
Post here or email me what the value is so I can include it in the next update.

Nov 7 2010
Comment #14 posted by Carlos at 3:42 am

Bot Tools Reloaded works great in Ubuntu 10.10 with Pidgin 2.7.5, after i've adjusted a few settings to my taste. Excellent!

Dec 18 2010
Comment #15 posted by pero at 3:40 am

Hi,
I like your plugin, and i use it since i found it.
It has some tips that will make your plugin more better:
1. I and other users, using Win64, so our Pidgin folder doesn't located in
\Program Files\ folder, it's \Program Files (x86)\ folder.
2. $ignore_language doesn't work!
I'm a programmer and I know a little about Perl. i can't find any use of $ignore_language in your code. please do something!

and at last, Your plugin is so good to me, i always want it. ;)

Dec 18 2010
Comment #16 posted by Eric at 7:18 pm

Thanks pero. I've implemented your suggestions and the file is now updated to version 1.04.

Feb 13 2011
Comment #17 posted by Andy Johnson at 9:39 am

I am using the newest pidgin 2.7.10 on a XP machinge. I did what u said put the bot tools in the pidgin plugin folder it has the perl.dll in there. I have had strawberry perl on this computer for a while and got its newest update. But yet your app doesn't work. Have I missed something. I still get this message plugins: C:\Program Files\Pidgin\plugins\perl.dll is not loadable: `C:\Program Files\Pidgin\plugins\perl.dll': The specified module could not be found. Could you explain why it is still not working!!

Feb 14 2011
Comment #18 posted by Eric at 3:28 am

Andy
There should be a directory named perl in your plugins directory. In it you will find Pidgin.pm, Perl.pm, and another directory. I'm pretty sure these are the modules referenced in that error. Try re-installing Pidgin.

Feb 18 2011
Comment #19 posted by Andy at 11:37 am

Ok I uninstalled and re installed pidgin 2.7.10 I put the 3 bot tools files the perl prog, global variables, functions, into the plugin directory. Ok I tried it again. Again Nothing there it still gives that same error that i said early. It does have the perl directory in plugins with what you said. It would be nice if it worked but hum right now it is not working!!! Any other ideas!!!

Mar 3 2012
Comment #20 posted by Nick at 7:53 pm

I'm using Linux Ubuntu, and bot~tools~loaded shows up on pidgin's plugin list when I put all of the files in /usr/lib/purple-2, but for some reason pidgin will not allow me to put a check in the box—even after reopening pidgin. bot-tools looks good in the plugin list, but no go. there is also a /usr/lib/purple-2/perl directory, which is the only subdirectory of purple-2, but after I put all of the files in that directory, bot-tools no longer shows up in plugins. I did notice that most of the files in the plugin directory are .so files.

Mar 5 2012
Comment #21 posted by Eric at 10:46 pm

Nick:
put the files in your ~/.purple/plugins directory. Here's where mine are located:
/home/eric/.purple/plugins/

Jul 1 2012
Comment #22 posted by H4 at 10:50 am

I installed the files into the plugins folder but I didn't see it in the list of plug-ins...I am using Pidgin 2.10.4

Whats the deal? Why do have to go and make things so complicated?

Jul 16 2012
Comment #23 posted by Eric at 8:00 pm

H4:
What operating system are you using? What does >help >debug say about Perl?

Jul 23 2012
Comment #24 posted by h4 at 8:07 am

I'm using XP, and debug just says this: (07:04:44) util: Writing file prefs.xml to directory C:\Documents and Settings\h4\Application Data\.purple
(07:04:44) util: Writing file C:\Documents and Settings\h4\Application Data\.purple\prefs.xml

I tried putting the 5 files into all the folders and it does not work...

I would really like for this to work because I use Yahoo and chat every day.

Jul 23 2012
Comment #25 posted by h4 at 8:10 am

ya know, I noticed the other plugins all have dll files... but this one doesn't... does that have anything to do with anything?

Jul 25 2012
Comment #26 posted by Eric at 12:30 am

Looks like you don't have Perl installed. There are solutions to that problem on this page.

Aug 5 2012
Comment #27 posted by H4 at 8:05 am

okay cool thanks, i'll look into installing perl... hope it works, i'm gonna try it now... thanks!

Comments for this entry available via RSS.
Comment Area
Your Name
Your Email (will not be published)
Your Website
Your Comment
Profanity is Prohibited
eric.dziewa.com is running WordPress.
WhiteSpace theme designed by E. Dziewa.
All content © E. Dziewa.
Thanks for stopping by.