diff options
author | Joe Rayhawk <jrayhawk+git@omgwallhack.org> | 2020-10-25 00:12:22 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk+git@omgwallhack.org> | 2020-10-25 00:12:22 -0700 |
commit | 8f2c2ca9eb1832900bd386f5f84449a9d121ac07 (patch) | |
tree | 0fa6bdb32626febed42b4b43f6d608880b825018 | |
parent | a2e264da6f4ff910b10dfb79eebb39def0967502 (diff) | |
download | twitchtools-8f2c2ca9eb1832900bd386f5f84449a9d121ac07.tar.gz twitchtools-8f2c2ca9eb1832900bd386f5f84449a9d121ac07.zip |
irssi-jtv: this probably should've gotten deleted several commits ago.
-rw-r--r-- | irssi-jtv.pl | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/irssi-jtv.pl b/irssi-jtv.pl deleted file mode 100644 index e9e72f5..0000000 --- a/irssi-jtv.pl +++ /dev/null @@ -1,29 +0,0 @@ -use Irssi 0.8.10 (); -use strict; - -use vars qw($VERSION %IRSSI); - -$VERSION="0.1.7"; -%IRSSI = ( - authors=> 'jrayhawk', - name=> 'jtv', - description=> 'repeats JTV information', - license=> 'GPL v2', -); - -sub jtv_say { - my ($server, $msg, $nick, $address) = @_; - - return if ($nick ne 'jtv'); - - return if ($msg !~ /(.+) is now hosting you for (.+) viewers\./ ); - - open(FILE, "~/.config/twitch/channel"); - my $channel = <FILE>; - $channel = chomp($channel); - close(FILE); - - $server->command("msg $channel Welcome, $2 viewers! Thanks for the host, $1!"); -} - -Irssi::signal_add_last('message private', 'jtv_say'); |