From 6374e96621ee0efdbda512419d295e5375a770f9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 13 Oct 2002 16:07:31 +0000 Subject: [PATCH] added git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2938 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- scripts/scriptassist.pl | 1060 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 1060 insertions(+) create mode 100644 scripts/scriptassist.pl diff --git a/scripts/scriptassist.pl b/scripts/scriptassist.pl new file mode 100644 index 00000000..ce6667b6 --- /dev/null +++ b/scripts/scriptassist.pl @@ -0,0 +1,1060 @@ +#!/usr/bin/perl +# +# by Stefan "tommie" Tomanek +# +# scriptassist.pl + + +use strict; + +use vars qw($VERSION %IRSSI); +$VERSION = '2002101202'; +%IRSSI = ( + authors => 'Stefan \'tommie\' Tomanek', + contact => 'stefan@pico.ruhr.de', + name => 'scriptassist', + description => 'keeps your scripts on the cutting edge', + license => 'GPLv2', + url => 'http://irssi.org/scripts/', + changed => $VERSION, + modules => 'Data::Dumper LWP::UserAgent (GnuPG)' +); + +use vars qw($forked %remote_db $have_gpg); + +use Irssi; +use Data::Dumper; +use LWP::UserAgent; +use POSIX; + +# GnuPG is not always needed +use vars qw($have_gpg @complist); +$have_gpg = 0; +eval "use GnuPG qw(:algo :trust);"; +$have_gpg = 1 if not ($@); + +sub show_help() { + my $help = "scriptassist $VERSION +/scriptassist check + Check all loaded scripts for new available versions +/scriptassist update + Update the selected or all script to the newest version +/scriptassist search + Search the script database +/scriptassist info + Display information about +/scriptassist ratings + Retrieve the average ratings of the the scripts +/scriptassist top + Retrieve the first top rated scripts +/scriptassist rate