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