You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
.gitignore | 3 years ago | |
README.md | 3 years ago | |
config.json.example | 3 years ago | |
markov-bot.py | 3 years ago | |
markov-prep.py | 3 years ago |
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