Add config example for markov bot

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-06-03 19:55:26 -07:00
parent 2e7825510e
commit 74c98696e4

View File

@@ -66,3 +66,42 @@ blocked = [
# or an IP subnet # or an IP subnet
"8.8.0.0/16" "8.8.0.0/16"
] ]
[[plugins]]
# Markov module will listen to everything everyone says, and sometimes spit
# phrases back at you.
module = "plugins.markov"
# order
# Markov chains are naiive models of how a certain person speaks. Chains have an
# "order", which is close to the "accuracy" of the way a person speaks. The
# larger the order, the more RAM and hard drive space is used.
# An order of 1 or 2 is recommended, anything larger gets pretty huge in memory.
# default: 1
# order = 1
# data_path
# This is the path to the directory that holds the markov chains. Chains are
# stored by channel, and then bey user.
# For example, data/markov/#chat/nick holds the data for the user "nick".
# default: data/markov/
# data_path = "data/markov"
# save_every
# Markov chains for all users are saved periodically. This value determine the
# number of seconds between saves.
# If a user's markov chain is not accessed after their last save, it is pruned
# from memory.
# default: 1800
# save_every = 1800
# reply_chance
# Whenever someone says something, the bot will train their markov chain based
# on what they've said. Sometimes, when someone says something, the bot will
# interject its opinion about the state of affairs, based on that user. This is
# based on a random chance. The supplied number should be be between 0.0 and
# 1.0, from "never" to "always".
# Additionally, users may set their reply chance between 0.0 and the value they
# set. e.g. with a value of 0.01, a user may set their reply chance to 0.001.
# default: 0.01
# reply_chance = 0.01