rulu ruru

post Random status message plugin for Pidgin

May 5th, 2008

Filed under: linux, programming — starenka @ 16:55
Tags: , , ,

pidginThere was one thing I missed most while using Pidgin - a simple plugin, which pops a random status message on Pidgin start after given time interval. I loved this plugin I’ve seen first in Miranda so much that  I decided to astray to terra incognita - plugin writing and Perl. Well it took me couple hours to figure out how it works and to learn the basic Perl syntax, nevertheles I’m happy to anounce that “randomator” is ready for downloads now…

 INSTALLATION

Simply unpack the archive to your ~/.purple/plugins directory and paste your own messages into file named randomator.txt. Each line of this file is considered to be a message. After strarting Pidgin go to plugins menu (ctrl+u) and enable the plugin. You will also need to create a “new status” with some content in order to let the plugin change the messages..

 USAGE

 Well, the plugins looks after itself, so you don’t need to do more stuff. I guess I should make some preference dialog to set your own path to the message file, but I was kinda lazy to that.

SETTINGS

You can specify the interval between message change on line 47 in randomator.pl file Purple::timeout_add($plugin, 3600, \&set_message); The preset interval is 3600 seconds = one hour. 

.

16 Comments

  1. “You will also need to create a “new status” with some content in order to let the plugin change the messages” ==> What should I fill on the Title, Status and Messages Field when I create New Status ? any title ? any status ? any message ?
    Can you make the random status message based on timer, so we can set the changes every 10 minutes for example ?

    Comment by bleketux — August 5, 2008 @ 02:52

  2. hi, bleketux! thx for comment…

    ad status: iit doesn’t really metter what you put into the status. The only thing you need is that the status is “saved”. The plugin then uses the current saved status placeholder.

    ad timer: yes, planning to implement such feature… the bad thing is that the perl api is not documented and i don’t have any clue about the C one - so I actually steal API calls from other scripts… will try to look at it as soon i have a spare minute. In case you have seen some plugin w/ some sort of timer, lemme know.

    Comment by starenka — August 6, 2008 @ 20:23

  3. Supports time interval now. Njoy!

    Comment by starenka — August 6, 2008 @ 22:30

  4. Thank you… you’re the best…
    Can I put this on my blog ?

    Comment by bleketux — August 7, 2008 @ 04:22

  5. No problem, if you link also to my site… ;)

    Comment by starenka — August 7, 2008 @ 09:21

  6. Absolutely… Since the latest version is on your site :D
    Thanks again…

    Comment by bleketux — August 8, 2008 @ 02:16

  7. […] Mau ikutan nyoba ? unduh aja pluginnya di blog mas starenka. […]

    Pingback by Random status message plugin untuk Pidgin « A Black Cat Who Loves Penguin — August 15, 2008 @ 12:19

  8. […] ikutan nyoba ? unduh aja pluginnya di blog mas starenka atau mau unduh filenya […]

    Pingback by MOZZIE.ORG » Blog Archive » Random status message plugin untuk Pidgin — August 15, 2008 @ 15:35

  9. It’s me Again :D
    I just upgrade pidgin to 2.5.0, seems like randomator not detected anymore… I can’t find it on plugin list…

    Comment by bleketux — August 20, 2008 @ 05:17

  10. Hullo! Is this version in repos, yet? Still have 2.4.1 in kubuntu/hardy … Please doublecheck plugin file location in ~/.purple/plugins.. according to pidgin-devel there has been no API nor plugin directory change. I will test it as soon as the 2.5 will arive in repos. One more thing… can you check “Help->About” for Perl support (maybe you haven’t compiled w/ Perl support)? Sorry for incovinience, mate. :(

    Comment by starenka — August 20, 2008 @ 22:38

  11. I’ve update pidgin to 2.5.1, now randomator work again… I guess it has something to do with a mising perl files… This is one of their change log : “Include some perl files that were mistakenly omitted in 2.5.0″.
    Sorry to bothered you starenka…

    Comment by bleketux — September 1, 2008 @ 08:20

  12. No problem. :) I’m still using 2.4.3, cause 2.5x is still not in hardy repos… thx for feedback, m8

    Comment by starenka — September 2, 2008 @ 11:36

  13. any instructions for installing in 2.6.2? I do not have a .purple/plugins directory.

    Comment by 24601 — March 5, 2010 @ 10:38

  14. I’m running it w/out any problem on 2.6.6. Just create the plugin directory.

    Comment by starenka — March 5, 2010 @ 10:40

  15. It works now… mostly. I keep getting an extra carriage-return at the end of the status when it changes. Any tips on how to tweak this? I’m using the included text file, with some deleted lines and new additions.

    Comment by 24601 — March 6, 2010 @ 23:24

  16. I guess it’s CRLF problem. My file (i guess it’s the same one included in the archive) has UNIX newlines (LF). Try to save the file w/ LF instead of CRLF (Win).

    Comment by starenka — March 6, 2010 @ 23:38

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

ruldrurd
© starenka 2oo7, cute alien monster by noizcut, original theme by Laurentiu Piron - customized by starenka | proudly powered by WordPress