From 149a39b4ec6a217108a0245065b69ed687e3eb6a Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <amorignot@meilleursagents.com>
Date: Fri, 14 Jul 2023 20:03:34 +0200
Subject: [PATCH] feat(sites): Remove PlayBotAPI support

---
 PlayBot/sites.pm | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/PlayBot/sites.pm b/PlayBot/sites.pm
index fa8f70c..94b89c5 100644
--- a/PlayBot/sites.pm
+++ b/PlayBot/sites.pm
@@ -26,25 +26,6 @@ sub parse {
     my ( $kernel, $user, $chan, $msg, $playlist ) = @_;
     my ( $nick, $mask ) = split( /!/, $user );
 
-    my $ua = LWP::UserAgent->new(
-        timeout   => 2,
-        env_proxy => 0,
-    );
-    my $response = $ua->post(
-        "http://cloud.cervoi.se:12345/rpc",
-        "X-PLAYBOT-KEY" => $playbot_api_key,
-        Content         =>
-          encode_json { "channel" => $chan, "user" => $nick, "value" => $msg },
-    );
-    if ( $response->is_success ) {
-        $log->info("Handled by scala");
-        $irc->yield( privmsg => $chan => $response->decoded_content );
-        return;
-    }
-    else {
-        $log->info( $response->code . " still perl job" );
-    }
-
     my $chan_conf = PlayBot::utils::db::chan->new($chan);
 
     my %content;
-- 
GitLab