diff --git a/Secrets.pm.example b/Secrets.pm.example deleted file mode 100644 index 4047011..0000000 --- a/Secrets.pm.example +++ /dev/null @@ -1,18 +0,0 @@ -package Secrets; -use strict; -use warnings; -use Exporter 'import'; - -our @EXPORT_OK = qw( - TELEGRAM_TOKEN - TELEGRAM_USER_ID - NICKSERV_PASSWORD - IRC_CHANNEL -); - -use constant TELEGRAM_TOKEN => 'Bot Token' -use constant TELEGRAM_USER_ID => 123456789; -use constant NICKSERV_PASSWORD => 'supersecretpassword'; -use constant IRC_CHANNEL => '#lobby'; - -1; diff --git a/bridge.pl b/bridge.pl index fe08ba4..9fa22c5 100644 --- a/bridge.pl +++ b/bridge.pl @@ -4,12 +4,8 @@ use warnings; use POE; use POE::Component::IRC; use WWW::Telegram::BotAPI; -use Secrets qw( - TELEGRAM_TOKEN - TELEGRAM_USER_ID - NICKSERV_PASSWORD - IRC_CHANNEL -); +require './.secrets.pm'; + my $IRC_SERVER = '127.0.0.1'; my $IRC_PORT = 6667; my $IRC_NICK = 'Jerry';