From 8cefc98efa375c162ea90a4c7dd1197093dd907b Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@cervoi.se> Date: Mon, 18 Apr 2016 00:42:31 +0200 Subject: [PATCH] U're Fucked Till 8 --- PlayBot.pl | 1 + PlayBot/commands/broken.pm | 1 + PlayBot/commands/conf.pm | 1 + PlayBot/commands/fav.pm | 1 + PlayBot/commands/get.pm | 1 + PlayBot/commands/get/query.pm | 1 + PlayBot/commands/later.pm | 1 + PlayBot/commands/parser.pm | 1 + PlayBot/commands/stats.pm | 1 + PlayBot/commands/tag.pm | 1 + PlayBot/sessions/downloader.pm | 1 + PlayBot/sessions/downloader/ddl.pm | 1 + PlayBot/sessions/facebook.pm | 1 + PlayBot/sessions/irc.pm | 1 + PlayBot/sessions/irc/later.pm | 1 + PlayBot/sites.pm | 1 + PlayBot/sites/dailymotion.pm | 1 + PlayBot/sites/deezer.pm | 1 + PlayBot/sites/facebook.pm | 1 + PlayBot/sites/mixcloud.pm | 3 ++- PlayBot/sites/soundcloud.pm | 1 + PlayBot/sites/spotify.pm | 1 + PlayBot/sites/youtube.pm | 1 + PlayBot/sites/zippy.pm | 1 + PlayBot/utils/Logging.pm | 1 + PlayBot/utils/db.pm | 1 + PlayBot/utils/db/chan.pm | 1 + PlayBot/utils/db/get.pm | 1 + PlayBot/utils/db/stats.pm | 1 + PlayBot/utils/id.pm | 1 + PlayBot/utils/print.pm | 1 + 31 files changed, 32 insertions(+), 1 deletion(-) diff --git a/PlayBot.pl b/PlayBot.pl index 4d60c94..31cb9f3 100755 --- a/PlayBot.pl +++ b/PlayBot.pl @@ -1,6 +1,7 @@ #!/usr/bin/perl -w use strict; use warnings; +use utf8; use POE; diff --git a/PlayBot/commands/broken.pm b/PlayBot/commands/broken.pm index 07bdb28..0514662 100644 --- a/PlayBot/commands/broken.pm +++ b/PlayBot/commands/broken.pm @@ -2,6 +2,7 @@ package PlayBot::commands::broken; use strict; use warnings; +use utf8; use PlayBot::utils::db; use PlayBot::utils::db::get; diff --git a/PlayBot/commands/conf.pm b/PlayBot/commands/conf.pm index b2ab650..9008545 100644 --- a/PlayBot/commands/conf.pm +++ b/PlayBot/commands/conf.pm @@ -2,6 +2,7 @@ package PlayBot::commands::conf; use strict; use warnings; +use utf8; use Module::Pluggable sub_name => 'sites', search_path => ['PlayBot::sites'], require => 1; diff --git a/PlayBot/commands/fav.pm b/PlayBot/commands/fav.pm index 3eee6ba..08a670d 100644 --- a/PlayBot/commands/fav.pm +++ b/PlayBot/commands/fav.pm @@ -2,6 +2,7 @@ package PlayBot::commands::fav; use strict; use warnings; +use utf8; our $dbh; our $log; diff --git a/PlayBot/commands/get.pm b/PlayBot/commands/get.pm index cbd9e00..babc641 100644 --- a/PlayBot/commands/get.pm +++ b/PlayBot/commands/get.pm @@ -2,6 +2,7 @@ package PlayBot::commands::get; use strict; use warnings; +use utf8; use PlayBot::utils::print; use PlayBot::utils::db; diff --git a/PlayBot/commands/get/query.pm b/PlayBot/commands/get/query.pm index 176823e..91549ce 100644 --- a/PlayBot/commands/get/query.pm +++ b/PlayBot/commands/get/query.pm @@ -2,6 +2,7 @@ package PlayBot::commands::get::query; use strict; use warnings; +use utf8; use Moose; use overload '~~' => \&_equals; diff --git a/PlayBot/commands/later.pm b/PlayBot/commands/later.pm index 26eef73..5886b62 100644 --- a/PlayBot/commands/later.pm +++ b/PlayBot/commands/later.pm @@ -2,6 +2,7 @@ package PlayBot::commands::later; use strict; use warnings; +use utf8; our $dbh; our $log; diff --git a/PlayBot/commands/parser.pm b/PlayBot/commands/parser.pm index b55cfc6..4cb9ddb 100644 --- a/PlayBot/commands/parser.pm +++ b/PlayBot/commands/parser.pm @@ -2,6 +2,7 @@ package PlayBot::commands::parser; use strict; use warnings; +use utf8; use Try::Tiny; use PlayBot::commands::conf; diff --git a/PlayBot/commands/stats.pm b/PlayBot/commands/stats.pm index e7ca7b7..cff279c 100644 --- a/PlayBot/commands/stats.pm +++ b/PlayBot/commands/stats.pm @@ -2,6 +2,7 @@ package PlayBot::commands::stats; use strict; use warnings; +use utf8; use PlayBot::utils::print; use PlayBot::utils::db; diff --git a/PlayBot/commands/tag.pm b/PlayBot/commands/tag.pm index 0ca69b8..548b01e 100644 --- a/PlayBot/commands/tag.pm +++ b/PlayBot/commands/tag.pm @@ -2,6 +2,7 @@ package PlayBot::commands::tag; use strict; use warnings; +use utf8; our $dbh; our $log; diff --git a/PlayBot/sessions/downloader.pm b/PlayBot/sessions/downloader.pm index 7eed2a7..b441ce2 100644 --- a/PlayBot/sessions/downloader.pm +++ b/PlayBot/sessions/downloader.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::downloader; use strict; use warnings; +use utf8; use JSON; use POE; diff --git a/PlayBot/sessions/downloader/ddl.pm b/PlayBot/sessions/downloader/ddl.pm index 992117b..33c34ef 100644 --- a/PlayBot/sessions/downloader/ddl.pm +++ b/PlayBot/sessions/downloader/ddl.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::downloader::ddl; use strict; use warnings; +use utf8; use JSON; use POE; diff --git a/PlayBot/sessions/facebook.pm b/PlayBot/sessions/facebook.pm index a083c37..f4d6b37 100644 --- a/PlayBot/sessions/facebook.pm +++ b/PlayBot/sessions/facebook.pm @@ -7,6 +7,7 @@ package PlayBot::sessions::facebook; use strict; use warnings; +use utf8; use POE; use POE::Component::IKC::Server; diff --git a/PlayBot/sessions/irc.pm b/PlayBot/sessions/irc.pm index b5147d4..1f01d3e 100644 --- a/PlayBot/sessions/irc.pm +++ b/PlayBot/sessions/irc.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::irc; use strict; use warnings; +use utf8; use DBI; use POE; diff --git a/PlayBot/sessions/irc/later.pm b/PlayBot/sessions/irc/later.pm index 20f9677..474ebf7 100644 --- a/PlayBot/sessions/irc/later.pm +++ b/PlayBot/sessions/irc/later.pm @@ -2,6 +2,7 @@ package PlayBot::sessions::irc::later; use strict; use warnings; +use utf8; use PlayBot::commands::get; diff --git a/PlayBot/sites.pm b/PlayBot/sites.pm index 9da0405..4e36d00 100644 --- a/PlayBot/sites.pm +++ b/PlayBot/sites.pm @@ -2,6 +2,7 @@ package PlayBot::sites; use strict; use warnings; +use utf8; use Module::Pluggable sub_name => 'sites', search_path => ['PlayBot::sites'], require => 1; use Storable qw(dclone); diff --git a/PlayBot/sites/dailymotion.pm b/PlayBot/sites/dailymotion.pm index 2e9fdb0..e2fd872 100644 --- a/PlayBot/sites/dailymotion.pm +++ b/PlayBot/sites/dailymotion.pm @@ -2,6 +2,7 @@ package PlayBot::sites::dailymotion; use strict; use warnings; +use utf8; use Inline Python => 'DATA'; diff --git a/PlayBot/sites/deezer.pm b/PlayBot/sites/deezer.pm index 9f96d96..2a01673 100644 --- a/PlayBot/sites/deezer.pm +++ b/PlayBot/sites/deezer.pm @@ -2,6 +2,7 @@ package PlayBot::sites::deezer; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/facebook.pm b/PlayBot/sites/facebook.pm index f60b283..66c1ea0 100644 --- a/PlayBot/sites/facebook.pm +++ b/PlayBot/sites/facebook.pm @@ -2,6 +2,7 @@ package PlayBot::sites::facebook; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/mixcloud.pm b/PlayBot/sites/mixcloud.pm index 20b515c..9acf657 100644 --- a/PlayBot/sites/mixcloud.pm +++ b/PlayBot/sites/mixcloud.pm @@ -2,11 +2,11 @@ package PlayBot::sites::mixcloud; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; use Encode; -use utf8; sub regex @@ -18,6 +18,7 @@ sub regex sub get { shift; my $id = shift; + print "$id\n"; my $url = 'https://api.mixcloud.com/'.$id; my $ua = LWP::UserAgent->new( diff --git a/PlayBot/sites/soundcloud.pm b/PlayBot/sites/soundcloud.pm index f802fcf..004e374 100644 --- a/PlayBot/sites/soundcloud.pm +++ b/PlayBot/sites/soundcloud.pm @@ -2,6 +2,7 @@ package PlayBot::sites::soundcloud; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/spotify.pm b/PlayBot/sites/spotify.pm index 177cb26..b10e282 100644 --- a/PlayBot/sites/spotify.pm +++ b/PlayBot/sites/spotify.pm @@ -2,6 +2,7 @@ package PlayBot::sites::spotify; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/youtube.pm b/PlayBot/sites/youtube.pm index d12c260..ae30a4e 100644 --- a/PlayBot/sites/youtube.pm +++ b/PlayBot/sites/youtube.pm @@ -2,6 +2,7 @@ package PlayBot::sites::youtube; use strict; use warnings; +use utf8; use LWP::UserAgent; use JSON; diff --git a/PlayBot/sites/zippy.pm b/PlayBot/sites/zippy.pm index 9cc1392..e1d6d23 100644 --- a/PlayBot/sites/zippy.pm +++ b/PlayBot/sites/zippy.pm @@ -2,6 +2,7 @@ package PlayBot::sites::zippy; use strict; use warnings; +use utf8; use LWP::UserAgent; use HTML::Parser; diff --git a/PlayBot/utils/Logging.pm b/PlayBot/utils/Logging.pm index 1ed4690..36e7038 100644 --- a/PlayBot/utils/Logging.pm +++ b/PlayBot/utils/Logging.pm @@ -7,6 +7,7 @@ package PlayBot::utils::Logging; use strict; use warnings; +use utf8; use Fcntl ':mode'; diff --git a/PlayBot/utils/db.pm b/PlayBot/utils/db.pm index 9a9498d..7d879e1 100644 --- a/PlayBot/utils/db.pm +++ b/PlayBot/utils/db.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db; use strict; use warnings; +use utf8; use DBI; use JSON; diff --git a/PlayBot/utils/db/chan.pm b/PlayBot/utils/db/chan.pm index 6e8506b..f185ac4 100644 --- a/PlayBot/utils/db/chan.pm +++ b/PlayBot/utils/db/chan.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db::chan; use strict; use warnings; +use utf8; use JSON; use Moose; diff --git a/PlayBot/utils/db/get.pm b/PlayBot/utils/db/get.pm index 7f91f6c..f37d8c4 100644 --- a/PlayBot/utils/db/get.pm +++ b/PlayBot/utils/db/get.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db::get; use strict; use warnings; +use utf8; use feature 'state'; use Moose; diff --git a/PlayBot/utils/db/stats.pm b/PlayBot/utils/db/stats.pm index 2a069ee..fbf6e94 100644 --- a/PlayBot/utils/db/stats.pm +++ b/PlayBot/utils/db/stats.pm @@ -2,6 +2,7 @@ package PlayBot::utils::db::stats; use strict; use warnings; +use utf8; use Moose; use FindBin; diff --git a/PlayBot/utils/id.pm b/PlayBot/utils/id.pm index 429d124..a07913b 100644 --- a/PlayBot/utils/id.pm +++ b/PlayBot/utils/id.pm @@ -2,6 +2,7 @@ package PlayBot::utils::id; use strict; use warnings; +use utf8; use Scalar::Util qw(looks_like_number); diff --git a/PlayBot/utils/print.pm b/PlayBot/utils/print.pm index 57abd1a..e19a196 100644 --- a/PlayBot/utils/print.pm +++ b/PlayBot/utils/print.pm @@ -2,6 +2,7 @@ package PlayBot::utils::print; use strict; use warnings; +use utf8; use IRC::Utils qw(YELLOW ORANGE GREEN NORMAL LIGHT_BLUE GREY); -- GitLab