mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-16 07:18:54 +00:00
Fix formatting
This commit is contained in:
parent
3e42c74c78
commit
5fc818b55e
1 changed files with 31 additions and 29 deletions
|
@ -95,7 +95,9 @@ pub fn vote(ctx: &mut Context, msg: &Message, mut args: Args) -> CommandResult {
|
||||||
let reaction_to_choice: Map<_, _> = choices.iter().map(|r| (r.0, &r.1)).collect();
|
let reaction_to_choice: Map<_, _> = choices.iter().map(|r| (r.0, &r.1)).collect();
|
||||||
let mut user_reactions: Map<UserId, Vec<&str>> = Map::new();
|
let mut user_reactions: Map<UserId, Vec<&str>> = Map::new();
|
||||||
|
|
||||||
ctx.data.get_cloned::<ReactionWatcher>().handle_reactions_timed(
|
ctx.data
|
||||||
|
.get_cloned::<ReactionWatcher>()
|
||||||
|
.handle_reactions_timed(
|
||||||
|reaction: &Reaction, is_add| {
|
|reaction: &Reaction, is_add| {
|
||||||
if reaction.message_id != panel.id {
|
if reaction.message_id != panel.id {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|
Loading…
Add table
Reference in a new issue