.gitignore | ||
config.json.example | ||
LICENSE | ||
markov-bot.py | ||
markov-prep.py | ||
README.md |
markov-bot
Markov chain discord bot, sends randomly generated sentences at configurable intervals and when mentioned.
Setup
Put some text into corpus.txt
, and then run
git clone https://git.xeno.science/xenofem/markov-bot
cd markov-bot
python3 -m venv env
source env/bin/activate
pip install discord.py
python markov-prep.py
cp config.json.example config.json
vi config.json
python markov-bot.py
Configuration
mode
: can bereply
, to reply to occasional messages, ortimed
, to send messages unprompted to random channels at a set intervalreply_invfreq
: inreply
mode, will reply to one in N messages on averagereply_delay_min
: minimum amount of time to wait before sending a replyreply_delay_max
: maximum amount of time to wait before sending a replytimed_interval_min
: intimed
mode, minimum time between successive messages in the same guildtimed_interval_max
: maximum time between successive messages in the same guildtoken
: Discord bot API token