From 089f7653f74ab2c8797f5f4559c08188756827d7 Mon Sep 17 00:00:00 2001 From: Gwyn Date: Wed, 4 Mar 2026 14:53:26 -0500 Subject: [PATCH] revert 3767df26f963b0a82702b0a22bcec2a49eef0ed2 revert changed how module loads --- Secrets.pm.example | 18 ------------------ bridge.pl | 8 ++------ 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 Secrets.pm.example 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';