Skip to content

Commit

Permalink
FIX: SHOUT FACTS ABOUT CATS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceejbot committed Apr 26, 2020
1 parent 9272d43 commit e3249b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bin/LOUDBOT.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ impl Loudbot {
let retort: Option<String> = if self.sw.is_match(text) {
self.lookup(self.swkey.clone())
} else if self.cat.is_match(text) {
self.lookup(self.catkey.clone())
// this data is not in shoutcase to start with
if let Some(r) = self.lookup(self.catkey.clone()) {
Some(r.to_uppercase())
} else {
None
}
} else if self.malc.is_match(text) {
Some("https://cldup.com/w_exMqXKlT.gif".to_string())
} else if self.ship.is_match(text) {
Expand Down

0 comments on commit e3249b2

Please sign in to comment.