aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2019-06-25 14:58:48 +0200
committerGuillermo Ramos2019-06-25 14:58:48 +0200
commitdac5fc129224d7a148f97fa5f697c7eeae6489f8 (patch)
treedaac232b862a91b14cdcc9f7e7422c112de4acee
parent71d0f097da4f35823116c1a89f0c55d2c5adbc74 (diff)
downloadtgutils-dac5fc129224d7a148f97fa5f697c7eeae6489f8.tar.gz
Nothing important
-rwxr-xr-xtgsend2
-rwxr-xr-xtgserver4
2 files changed, 2 insertions, 4 deletions
diff --git a/tgsend b/tgsend
index 6bacc2e..80458e4 100755
--- a/tgsend
+++ b/tgsend
@@ -36,7 +36,7 @@ my $logger = TgLib::Logger->new($VERBOSE);
# Fetch token: CLI || env || file
$TOKEN ||= fetch_token() or
pod2usage(-message => "ERROR: Unable to get bot token ($!).\n",
- -verbose => 99, -sections => "AUTHENTICATION");
+ -verbose => 99, -sections => "AUTHENTICATION");
# Read text from stdin
undef $/;
diff --git a/tgserver b/tgserver
index 3dc3c9e..ccbe127 100755
--- a/tgserver
+++ b/tgserver
@@ -11,8 +11,6 @@ use Getopt::Long qw(:config auto_version);
use Pod::Usage qw<pod2usage>;
use Data::Dumper;
-use JSON qw<decode_json>;
-
use FindBin;
use lib "$FindBin::Bin/lib";
@@ -35,7 +33,7 @@ my $logger = TgLib::Logger->new($VERBOSE);
# If token was not specified in CLI, get it from ENV/file
$TOKEN ||= fetch_token() or
pod2usage(-message => "ERROR: Unable to get bot token ($!).\n",
- -verbose => 99, -sections => "AUTHENTICATION");
+ -verbose => 99, -sections => "AUTHENTICATION");
my $cache = TgLib::Cache->new($logger);
my $api = TgLib::Api->new($TOKEN, $logger);