parent
7c911f33d8
commit
089f7653f7
2 changed files with 2 additions and 24 deletions
|
|
@ -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;
|
|
||||||
|
|
@ -4,12 +4,8 @@ use warnings;
|
||||||
use POE;
|
use POE;
|
||||||
use POE::Component::IRC;
|
use POE::Component::IRC;
|
||||||
use WWW::Telegram::BotAPI;
|
use WWW::Telegram::BotAPI;
|
||||||
use Secrets qw(
|
require './.secrets.pm';
|
||||||
TELEGRAM_TOKEN
|
|
||||||
TELEGRAM_USER_ID
|
|
||||||
NICKSERV_PASSWORD
|
|
||||||
IRC_CHANNEL
|
|
||||||
);
|
|
||||||
my $IRC_SERVER = '127.0.0.1';
|
my $IRC_SERVER = '127.0.0.1';
|
||||||
my $IRC_PORT = 6667;
|
my $IRC_PORT = 6667;
|
||||||
my $IRC_NICK = 'Jerry';
|
my $IRC_NICK = 'Jerry';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue