https://github.com/exposedcat/headers-generator
Generating funny headers based on recent news
https://github.com/exposedcat/headers-generator
markov-chain markov-chains markov-text-generator
Last synced: 7 months ago
JSON representation
Generating funny headers based on recent news
- Host: GitHub
- URL: https://github.com/exposedcat/headers-generator
- Owner: ExposedCat
- Created: 2020-09-18T15:33:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T16:21:24.000Z (about 4 years ago)
- Last Synced: 2025-01-18T14:34:16.899Z (12 months ago)
- Topics: markov-chain, markov-chains, markov-text-generator
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Headers-Generator
Generating funny headers using news
Based on korrespondent.net news
Generating algorithm - Markov Chains
## How to run
1) Create `config.env` file with contents:
```
token="TOKEN"
hideErrors="true"
rssLink="http://k.img.com.ua/rss/ru/"
pagesList="lifestyle,magnolia,kyiv,world,mainbyday,interview,business,good_news,strange,journal,showbiz,ukraine,tech,sport"
sentenceEndSymbols=".,!,?"
```
2) Insert your token from `@BotFather` instead of `TOKEN`
3) Run `bot.mjs`:
```bash
node bot.mjs
```
## Dependencies:
[Satanic](https://www.npmjs.com/package/satanic)
[Mongoose](https://www.npmjs.com/package/mongoose)