Skip to content

Commit

Permalink
pux
Browse files Browse the repository at this point in the history
  • Loading branch information
house-of-vanity authored Oct 17, 2024
1 parent 4ac7920 commit 739109e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl Execute for MarkovAll {
chain.feed(messages);
let mut sentences = chain.generate();
let mut msg = String::new();
for _ in 1..rand::thread_rng().gen_range(2, 10) {
for _ in 1..rand::thread_rng().gen_range(2..10) {
msg = format!("{} {}", msg, sentences.pop().unwrap());
}
match api
Expand Down Expand Up @@ -477,7 +477,7 @@ impl Execute for Markov {
chain.feed(messages);
let mut sentences = chain.generate();
let mut msg = String::new();
for _ in 1..5 {
for _ in 1..rand::thread_rng().gen_range(2..10) {
msg = format!("{} {}", msg, sentences.pop().unwrap_or(" ".into()));
}
match api
Expand Down

0 comments on commit 739109e

Please sign in to comment.