Hello!
Is there a tutorial on how to write a plugin for ejabberd?
what I need is a plugin that does this:
when I send a message to this account (to plugin), it will post it to my blog, so I will be able to just post to my blog from IM client. It will have to check the 'from' username and if it's from my own account, then it will just use a blog API to post this message to my blog.
Do I have to write it in ERlang or can I use PERL? I would preffer perl or even cgi version of php (ok, I only use these 2 scripting langs for now) since I've never used ERlang before.
I mean, it's easy to write it in perl, but how to I register a plugin written in perl? I think I can use a chat-bot for this, but would preffer a real plugin, not a chat-bot because I think plugin is faster.
Re: Can a plugin be written in perl?
If it's going to be a real ejabberd module it has to be in erlang.
Though for such a lite task as posting on your blog it's not necessary to make a ejabberd module.
[edit: typo]
I wrote a similar program a
I wrote a similar program a while back and just ran it as a daemon. Toss the perl script in your ejabberd startup program, maybe with a wrapper to respawn it, bam, done.
Why not a bot ?
Hello,
I think in your case, you should write an XMPP bot, in your prefered programming language.
--
Process-one
Mickaël Rémond