A simple node.js bot - that generates markov chain text statuses and posts them on mastodon
- JavaScript 100%
|
|
||
|---|---|---|
| examples | add asimov.txt | |
| .gitignore | update .gitignore | |
| app.js | fixed sentence and key length | |
| LICENSE | Add LICENSE | |
| markov-chain.js | fixed sentence and key length | |
| package-lock.json | remove markov dependency | |
| package.json | remove markov dependency | |
| README.md | update README.md | |
mastodon-markov-chain-bot
A simple node.js bot - that generates markov chain text statuses and posts them on mastodon. Example Mastodon Account
What's inside?
- dotenv - a module that loads environment variables from a .env file
- markov-chain.js - a markov chain generator
- mastodon - the Mastodon API client for node
How to start?
- Clone this repo
- Remove the
.gitfolder - Add your mastodon access token and api url on .env file
- Add a text file (similar with the examples/asimov.txt) as a source to generate the markov chain sentences
npm start
This will post a markov chain sentence on your mastodon account.
For automation: you can schedule a Cron Job to run the script.
License
MIT