File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,13 @@ fn handle_command<'a>(
181
181
} )
182
182
. unwrap ( ) ,
183
183
} ,
184
+ Some ( "read" ) => return match post_waiter ( & ctx, message_data, WaitingMessage :: start_reading ( ) ) . await {
185
+ Ok ( r) => r,
186
+ Err ( e) => serde_json:: to_string ( & Response {
187
+ content : & format ! ( "Failed to await at this time: {:?}" , e) ,
188
+ } )
189
+ . unwrap ( ) ,
190
+ } ,
184
191
_ => { }
185
192
}
186
193
}
@@ -749,6 +756,13 @@ impl WaitingMessage<'static> {
749
756
emoji : & [ "working_on_it" , "all_good" ] ,
750
757
}
751
758
}
759
+ fn start_reading ( ) -> Self {
760
+ WaitingMessage {
761
+ primary : "Click on the :book: when you start reading (and leave it clicked).\n \
762
+ Click on the :checkered_flag: when you finish reading.",
763
+ emoji : & [ "book" , "checkered_flag" ] ,
764
+ }
765
+ }
752
766
}
753
767
754
768
async fn post_waiter (
You can’t perform that action at this time.
0 commit comments