From 74c98696e4576f3afebece104a93e25a80ce615c Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Fri, 3 Jun 2022 19:55:26 -0700 Subject: [PATCH] Add config example for markov bot Signed-off-by: Alek Ratzloff --- config.example.toml | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/config.example.toml b/config.example.toml index 526988a..6a49f7f 100644 --- a/config.example.toml +++ b/config.example.toml @@ -65,4 +65,43 @@ blocked = [ "8.8.8.8", # or an IP subnet "8.8.0.0/16" -] \ No newline at end of file +] + +[[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 \ No newline at end of file