IRC scripts voor GAIM

Pagina: 1
Acties:

  • Triple
  • Registratie: Mei 2000
  • Laatst online: 20-05-2025
Hallo,
Weet iemand hoe het zit met IRC scripts voor GAIM? Ik zit sinds kort op IRC en een aantal klanten uit het channel waar ik kom maken gebruik van scripts om snel hele regels met, nou ja, voornamelijk onzin vol te kalken, en dat wil ik natuurlijk ook!
Ik heb al op de sf pagina van gaim gekeken, een paar IRC pagina's en wat gegoogled en hier gekeken op GOT maar geen succes.
Hoe wat en waar zit het nou met de scripts??
Een link of wat uitleg wordt zeer op prijs gesteld!

There is no beast without cruelty, Friedrich Nietzsche


Verwijderd

Misschien een normale irc client gebruiken ipv gaim?
Denk dan aan irssi, xchat, BitchX, epic, ...

  • Kanarie
  • Registratie: Oktober 2000
  • Laatst online: 14:30

Kanarie

תֹ֙הוּ֙ וָבֹ֔הוּ

Verwijderd schreef op zaterdag 18 juni 2005 @ 11:27:
Misschien een normale irc client gebruiken ipv gaim?
Denk dan aan irssi, xchat, BitchX, epic, ...
irssi heeft iig z'n eigen script engine.

Maar wat die andere mensen in het kanaal ongetwijfeld gebruiken is mIRC en mIRC scripts. mIRC is prima te draaien in Wine.

We're trapped in the belly of this horrible machine. And the machine is bleeding to death.


  • Zwerver
  • Registratie: Februari 2001
  • Niet online
THW Arie schreef op zaterdag 18 juni 2005 @ 11:30:
[...]


irssi heeft iig z'n eigen script engine.

Maar wat die andere mensen in het kanaal ongetwijfeld gebruiken is mIRC en mIRC scripts. mIRC is prima te draaien in Wine.
Ja dan ga je een windows client draaien op Linux :X Neem dan XChat oid, die is met tcl net zo goed te scripten als mirc :)

Woonachtig Down Under. Ik negeer je insults niet, maar tegen de tijd dat ik ze lees zijn ze meestal niet relevant meer


  • Kanarie
  • Registratie: Oktober 2000
  • Laatst online: 14:30

Kanarie

תֹ֙הוּ֙ וָבֹ֔הוּ

Zwerver schreef op zaterdag 18 juni 2005 @ 14:57:
[...]


Ja dan ga je een windows client draaien op Linux :X Neem dan XChat oid, die is met tcl net zo goed te scripten als mirc :)
Ik ben gewoon vergroeid met mIRC ;) Toen ik Linux ging draaien had ik geen zin om al m'n mIRC scripts en dialogs weg te gooien en opnieuw te beginnen.

We're trapped in the belly of this horrible machine. And the machine is bleeding to death.


  • M-ThijZ
  • Registratie: Maart 2003
  • Laatst online: 14:51

M-ThijZ

Riding on Rails

irssi en Konversation kun je lekker wat in perl scripten. Het niet zo heel erg moeilijk als je wat voorbeelden gebruikt. Ik zal hieronder even een scriptje posten wat ik gemaakt heb om een random fortune in het kanaal te zetten.

Perl:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/perl

#fortune.pl (0.1)

#This is a very simple script to just give an output of 'fortune'.
#Therefore it requires that fortune is installed.
#I'm just making this to taste perl a bit.

use vars qw($VERSION %IRSSI);
use Irssi;
use strict;
$VERSION = '0.1';
%IRSSI = (
        authors         => 'Matthijs Langenberg',
        contact         => 'langenberg@m-thijz.com',
        description     => 'Shows output of fortune in the active window.',
        license         => 'GPL',
);

#Adjust this to the full PATH of fortune if it isn't in your PATH.
my $fortunebin = "fortune";

#Check if fortune really is there.
if (!`$fortunebin`) {
        die "Couldn't find fortune executable, make sure fortune is in your PATH";
}

sub cmd_fortune_help {

print "";
print "%Rfortune.pl script v0.1 for irssi";
print "To use it just type: /fortune";
print "It'll output a quote from fortune, to the current channel";
print "";

}

sub cmd_fortune {
        my ($data, $server, $witem) = @_;
        my $fortune;
        my $output;

        $fortune = `$fortunebin 2> /dev/null`;
        $fortune =~ s/\s*\n\s*/ /g;
        $output = "\x034Random Fortune: \x03$fortune";

                if ($witem && ($witem->{type} eq "CHANNEL" || $witem->{type} eq "QUERY")) {
                                $witem->command("MSG ".$witem->{name}." $output");
                        }
                else {
                                Irssi::print("This is not a channel/query window :b");
                        }
}

Irssi::command_bind('fortune', 'cmd_fortune');
Irssi::command_bind('fortunehelp', 'cmd_fortune_help');
Pagina: 1