From ec48296ff857d46fc7aa7518d74f52829fa4396c Mon Sep 17 00:00:00 2001 From: Animation des soirees <nightiies@perso.iiens.net> Date: Fri, 24 Nov 2017 10:59:43 +0100 Subject: [PATCH] BRUTALE --- PlayBot/commands/get.pm | 5 +++++ PlayBot/commands/tag.pm | 5 +++++ PlayBot/utils/print.pm | 6 +++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/PlayBot/commands/get.pm b/PlayBot/commands/get.pm index 384d581..53c920d 100644 --- a/PlayBot/commands/get.pm +++ b/PlayBot/commands/get.pm @@ -102,6 +102,11 @@ sub exec { $irc->yield(privmsg => $chan => $irc_msg); + # BRUTALE + if ($content->{'id'} eq 9320) { + $irc->yield(privmsg => $chan => 'BRUUUTALEEEEEEEEEEEEEE'); + } + # we save the get like a post $sth = $dbh->prepare(' INSERT INTO playbot_chan (content, chan, sender_irc) diff --git a/PlayBot/commands/tag.pm b/PlayBot/commands/tag.pm index 548b01e..e82f6fa 100644 --- a/PlayBot/commands/tag.pm +++ b/PlayBot/commands/tag.pm @@ -19,6 +19,11 @@ sub addTag { my ($id, $tag) = @_; + # BRUTALE + if ($id eq 9320) { + return; + } + my $sth; $sth = $dbh->prepare('INSERT INTO playbot_tags (id, tag) VALUES (?, ?)'); diff --git a/PlayBot/utils/print.pm b/PlayBot/utils/print.pm index 26151bb..05e6b96 100644 --- a/PlayBot/utils/print.pm +++ b/PlayBot/utils/print.pm @@ -25,7 +25,11 @@ sub print { my ($content) = @_; - my $msg = YELLOW.'['.$content->{'id'}.'] '.GREEN.$content->{'title'}; + my $id = $content->{'id'}; + # BRUTALE + $id = 'BRUTALE' if ($id eq 9320); + + my $msg = YELLOW.'['.$id.'] '.GREEN.$content->{'title'}; if (defined $content->{'author'}) { -- GitLab