mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-07-07 04:34:07 +00:00
pux
This commit is contained in:
committed by
GitHub
parent
4ac7920815
commit
739109e5f7
@ -439,7 +439,7 @@ impl Execute for MarkovAll {
|
|||||||
chain.feed(messages);
|
chain.feed(messages);
|
||||||
let mut sentences = chain.generate();
|
let mut sentences = chain.generate();
|
||||||
let mut msg = String::new();
|
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());
|
msg = format!("{} {}", msg, sentences.pop().unwrap());
|
||||||
}
|
}
|
||||||
match api
|
match api
|
||||||
@ -477,7 +477,7 @@ impl Execute for Markov {
|
|||||||
chain.feed(messages);
|
chain.feed(messages);
|
||||||
let mut sentences = chain.generate();
|
let mut sentences = chain.generate();
|
||||||
let mut msg = String::new();
|
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()));
|
msg = format!("{} {}", msg, sentences.pop().unwrap_or(" ".into()));
|
||||||
}
|
}
|
||||||
match api
|
match api
|
||||||
|
Reference in New Issue
Block a user