Skip Menu |
 

This queue is for tickets about the Telegram-Bot CPAN distribution.

Report information
The Basics
Id: 119270
Status: resolved
Priority: 0/
Queue: Telegram-Bot

People
Owner: Nobody in particular
Requestors: JMERELO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Using variables for TOKEN
Download (untitled) / with headers
text/plain 265b
There does not seem to be a way to define the token using a variable, via command line or environment variable. It's got to be defined as a constant, which is extremely inconvenient if you want to have source in a public repo. Is that so, or am I missing something?
From: JMERELO [...] cpan.org
Download (untitled) / with headers
text/plain 399b
On Fri Dec 16 11:14:23 2016, JMERELO wrote: Show quoted text
> There does not seem to be a way to define the token using a variable, > via command line or environment variable. It's got to be defined as a > constant, which is extremely inconvenient if you want to have source > in a public repo. Is that so, or am I missing something?
OK, you just have to set 'token' when you initialize the bot. No problem here.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.