From 9f9fa0c7417541ab7e7ba642a565ec964079d598 Mon Sep 17 00:00:00 2001 From: gwyn Date: Wed, 4 Mar 2026 14:51:26 -0500 Subject: [PATCH] Final working proto - move to server success --- Secrets.pm.example | 8 ++++---- bridge.pl | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Secrets.pm.example b/Secrets.pm.example index 4047011..e3fab6a 100644 --- a/Secrets.pm.example +++ b/Secrets.pm.example @@ -10,9 +10,9 @@ our @EXPORT_OK = qw( IRC_CHANNEL ); -use constant TELEGRAM_TOKEN => 'Bot Token' -use constant TELEGRAM_USER_ID => 123456789; -use constant NICKSERV_PASSWORD => 'supersecretpassword'; -use constant IRC_CHANNEL => '#lobby'; +our TELEGRAM_TOKEN => 'Bot Token' +our TELEGRAM_USER_ID => 123456789; +our NICKSERV_PASSWORD => 'supersecretpassword'; +our constant IRC_CHANNEL => '#lobby'; 1; diff --git a/bridge.pl b/bridge.pl index fe08ba4..f27d502 100644 --- a/bridge.pl +++ b/bridge.pl @@ -4,6 +4,8 @@ use warnings; use POE; use POE::Component::IRC; use WWW::Telegram::BotAPI; +use FindBin; +use lib $FindBin::Bin; use Secrets qw( TELEGRAM_TOKEN TELEGRAM_USER_ID