diff --git a/MarkovBot.pl b/MarkovBot.pl index bc2a5df..e6ed7ce 100644 --- a/MarkovBot.pl +++ b/MarkovBot.pl @@ -79,7 +79,7 @@ sub said { my $chattiness = $redis->get("$redis_prefix:".config("irc_server").":$msg->{channel}:chattiness"); my $rand = rand 100; - if ($rand < $chattiness) { + if ($rand < $chattiness || (config("respond_on_highlight") eq "true" && $msg->{address})) { # generate a shitpost my @line = split " ", $msg->{body}; return unless scalar(@line) >= 2; diff --git a/config.default.yml b/config.default.yml index 2c1a13f..6294c78 100644 --- a/config.default.yml +++ b/config.default.yml @@ -2,10 +2,11 @@ # General settings # command_character: "." -insult: "you're a faggot" -insult_chance: 2 # % chance that the bot will use the insult +insult: "" +insult_chance: 0 # % chance that the bot will use the insult # can be 0 to disable insults target_words: 4 # lowest number of words in an 'ideal' response +respond_on_highlight: true # # Redis Settings