add all caps passive responding

This commit is contained in:
Edward Shen 2020-05-13 15:29:51 -04:00
parent 6ae05a9ce0
commit 4e6430ad27
Signed by: edward
GPG key ID: 19182661E818369F
2 changed files with 10 additions and 0 deletions

7
src/passive/all_caps.rs Normal file
View file

@ -0,0 +1,7 @@
use crate::simple_responder;
simple_responder!(
AllCapsResponder,
r"^[A-Z\s]{10,}$",
"( º _ ºノ) bruh calm down there"
);

View file

@ -1,4 +1,5 @@
use ahhhh::YellResponder; use ahhhh::YellResponder;
use all_caps::AllCapsResponder;
use best_doctor::BestDoctorResponder; use best_doctor::BestDoctorResponder;
use desu::DesuResponder; use desu::DesuResponder;
use reee::ReeeResponder; use reee::ReeeResponder;
@ -7,6 +8,7 @@ use serenity::model::channel::Message;
use serenity::prelude::{Context, EventHandler}; use serenity::prelude::{Context, EventHandler};
mod ahhhh; mod ahhhh;
mod all_caps;
mod best_doctor; mod best_doctor;
mod desu; mod desu;
mod reee; mod reee;
@ -23,6 +25,7 @@ impl Default for Handler {
Box::new(DesuResponder), Box::new(DesuResponder),
Box::new(YellResponder), Box::new(YellResponder),
Box::new(ReeeResponder), Box::new(ReeeResponder),
Box::new(AllCapsResponder),
], ],
} }
} }