-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathemotes.pl
More file actions
executable file
·42 lines (32 loc) · 780 Bytes
/
Copy pathemotes.pl
File metadata and controls
executable file
·42 lines (32 loc) · 780 Bytes
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
use strict;
use Irssi qw/signal_add get_irssi_dir/;
use Irssi::Irc;
use warnings;
use utf8;
use File::Slurp;
use vars qw($VERSION %IRSSI);
$VERSION = "1";
%IRSSI = (
authors => 'Jaykob Ross',
contact => 'mosai57@gmail.com',
name => 'Heption',
description => 'Personality script for the irc bot Heption',
created => '2015-03-15, 01:31 (-8 UTC)',
);
my @emotes = (
"(-_-;)",
"( T^T)",
"(ノ◕ヮ◕)ノ*:・゚✧",
"ಠ_ಠ",
"*\\(^w^)/*",
);
my $last_emote;
sub return_emote{
my ($server, $message, $nick, $address, $target) = @_;
return if $nick =~ (/^amiigo\|\d+/);
if ($message =~ /^!histy$/i){
my $emote = $emotes[int(rand(scalar(@emotes)))];
$server->command("MSG $target $emote");
}
}
signal_add('message public', \&return_emote);