There is no beast without cruelty, Friedrich Nietzsche
Verwijderd
Misschien een normale irc client gebruiken ipv gaim?
Denk dan aan irssi, xchat, BitchX, epic, ...
Denk dan aan irssi, xchat, BitchX, epic, ...
irssi heeft iig z'n eigen script engine.Verwijderd schreef op zaterdag 18 juni 2005 @ 11:27:
Misschien een normale irc client gebruiken ipv gaim?
Denk dan aan irssi, xchat, BitchX, epic, ...
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.
Ja dan ga je een windows client draaien op LinuxTHW 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.
Woonachtig Down Under. Ik negeer je insults niet, maar tegen de tijd dat ik ze lees zijn ze meestal niet relevant meer
Ik ben gewoon vergroeid met mIRCZwerver schreef op zaterdag 18 juni 2005 @ 14:57:
[...]
Ja dan ga je een windows client draaien op LinuxNeem dan XChat oid, die is met tcl net zo goed te scripten als mirc
We're trapped in the belly of this horrible machine. And the machine is bleeding to death.
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