This file is indexed.

/usr/share/doc/libbot-basicbot-perl/examples/tango.pl is in libbot-basicbot-perl 0.91-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
#!/usr/bin/perl

=head1 NAME

tango - slap people

=head1 USAGE

  ./tango <#channel> [<nick>]
  
Slaps someone in #channel. An option nick is the person to slap, otherwise
it'll slap leon.

Note that the server is hardcoded.

=cut

package Bot;
use base qw(Bot::BasicBot);
use warnings;
use strict;

my $ticked = 0;

sub tick {
  my $self = shift;
  exit if $ticked;
  $self->emote( { channel => ( $self->channels )[0], body => "slaps $self->{slapee}" } );
  $ticked = 1;
  return 1;
}
  
package main;

chomp(my $channel = shift);
die "no channel" unless $channel;

chomp(my $slapee = shift || "acme");

Bot->new(
  server => "london.irc.perl.org",
  channels => [ $channel ],
  nick => 'tango',
  slapee => $slapee,
)->run();