FANotifier Telegram bot
Under the MIT license
Needs node 12.0 or greater
npm install
npm run build
config.json
in the root directory
Just run npm run start
and the bot will run in the foreground. Currently checks every 60 seconds for updates.
Create a bot token from BotFather and put the token in config.json
.
Message the bot with /start
, then send your FA cookies to it with /setfacookie b=(guid); a=(guid); s=1
. You'll need to pull the a
and b
values from an existing session, the bot doesn't support logging in for you.
Now the bot should start sending you your submissions!
A secondary bot is supported that supports specific filtering. It will automatically read your credentials from the first bot, but won't send you anything until you set a filter. You can specify submission and journal filters, and optionally have the filter bot send you your comments.
Filters use regexes. Example values:
/setsubmissionfilter commissions
/setjournalfilter (commissions*|slots|spots|open|ych)
/togglecomments
- Enable/disable the main bot
- Allow not configuring the filter bot (or maybe enable filtering on the main bot too)