Skip to content

ExposedCat/Headers-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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=".,!,?"
  1. Insert your token from @BotFather instead of TOKEN
  2. Run bot.mjs:
node bot.mjs

Dependencies:

Satanic
Mongoose