Conf file in the same folder as the script doesn't seem to work
proofrock opened this issue · comments
Hi!
first of all, thanks for this great script. With the latest version, I created a file telegram.sh.conf
with:
TELEGRAM_TOKEN="1999969932:..."
TELEGRAM_CHAT="599931726"
I put this file in the same folder as the script, even cd
ed to that folder (is it necessary?) but:
[mano@aralex AUR]$ ./telegram.sh ciao
No bot token was given.
If I move the conf file to the home dir, renaming it with a leading dot, it all works. Is this correct? From what I read on the README, the first method should work too.
Thanks a lot,
G.
Ah ok, the right name for the file is .telegram.sh.conf
so the README is at fault here. IMHO it would be nice that it didn't have the dot, it would be a pain to have an hidden file in a folder that is "dedicated" to the script.