1
0
Fork
You've already forked mastodon-markov-chain-bot
0
A simple node.js bot - that generates markov chain text statuses and posts them on mastodon
  • JavaScript 100%
2019年11月16日 15:29:33 +02:00
examples add asimov.txt 2019年10月15日 19:06:49 +03:00
.gitignore update .gitignore 2019年10月15日 19:10:14 +03:00
app.js fixed sentence and key length 2019年11月16日 15:29:33 +02:00
LICENSE Add LICENSE 2019年10月15日 16:20:49 +00:00
markov-chain.js fixed sentence and key length 2019年11月16日 15:29:33 +02:00
package-lock.json remove markov dependency 2019年10月16日 19:34:43 +03:00
package.json remove markov dependency 2019年10月16日 19:34:43 +03:00
README.md update README.md 2019年10月16日 19:35:33 +03:00

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 .git folder
  • 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