mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
osu: Make c/last/lb sensitive to replied-to messages
This commit is contained in:
parent
00f8c8329e
commit
556ada2b9d
4 changed files with 79 additions and 14 deletions
|
@ -108,6 +108,14 @@ pub mod builders {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn maybe_mode(&mut self, mode: Option<Mode>) -> &mut Self {
|
||||
if let Some(m) = mode {
|
||||
self.mode(m, true)
|
||||
} else {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
pub fn mode(&mut self, mode: Mode, converted: bool) -> &mut Self {
|
||||
self.mode = Some((mode, converted));
|
||||
self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue