https://github.com/cheeplusplus/fanotif-tg
Artsite notifier for Telegram
https://github.com/cheeplusplus/fanotif-tg
Last synced: 6 months ago
JSON representation
Artsite notifier for Telegram
- Host: GitHub
- URL: https://github.com/cheeplusplus/fanotif-tg
- Owner: cheeplusplus
- License: mit
- Created: 2017-08-13T07:31:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T04:19:07.000Z (6 months ago)
- Last Synced: 2024-11-13T05:21:23.371Z (6 months ago)
- Language: TypeScript
- Size: 688 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fanotif-tg
FANotifier Telegram bot
Under the MIT license
## Server side
### Installation
Needs node 12.0 or greater
* `npm install`
* `npm run build`### Configuration
`config.json` in the root directory
### Running
Just run `npm run start` and the bot will run in the foreground. Currently checks every 60 seconds for updates.
## Telegram side
### Bot creation
Create a bot token from BotFather and put the token in `config.json`.
### User setup
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!
### Filter bot
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
```## Future TODOs
* Enable/disable the main bot
* Allow not configuring the filter bot (or maybe enable filtering on the main bot too)