Pidgin Plug-in Pseudo-bot
I'm trying to find the simplest way to create a Pidgin plugin to act as a sort of bot. Basically, I want to be able to run:
my-program 'message_sent_or_received'
Whenever I get a message, or send one.
(replacing ' with \', to avoid breaking the quotes and all of the security issues that might occur)
And then, Pidgin would send the output of this command that would normally go in a terminal back to the client. For example, if someone (or me) entered "!hello-world," then, the program would get the string of "hello-world" and output "Hello, World!" This is basically my idea of a makeshift IRC-like bot that would be relatively easy to do.
I would assume that there would be some sort of plug-in for this; it's relatively simple in concept, and I would be able to program the parsing part, however, I don't know where I would start on the plug-in part of this, or if one is already available.
Also, to clarify, I'm not asking for people to make something for me. Rather, I'm asking on how I might go about programming it, and/or if there's something that's already made that I should look at.
Last edited by RetroXYZ; 03-16-2010 at 05:38 PM.
|