Skip to content

ky28059/markov

Repository files navigation

markov

A silly markov chain bot trained on messages in the b01lers server.

Running locally

Create a .env file exporting the bot token like so:

TOKEN=...

After adding the bot to a server, if you don't have a local copy of the scraped Discord messages run

npm run fetch -- [server id]

(replacing [server id] with the Discord ID of the server to fetch from) to generate them. Then, train model weights via

npm run train -- [server id]

You can generate some test tokens via

npm run test -- [server id]

or start the bot by running

npm start

Advanced usage

If you want to only train specific weights, run

npm run train:fo -- [server id]
npm run train:so -- [server id]
npm run train:global -- [server id]

to train server-wide first order, second order, or both weights, respectively.

Similarly, run

npm run train:fo-keyed -- [server id]
npm run train:so-keyed -- [server id]
npm run train:keyed -- [server id]

to train user-keyed first order, second order, or both weights, respectively.

About

Simple markov chain Discord bot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published