mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-20 01:08:55 +00:00
osu: add loading indicator
This commit is contained in:
parent
f54f3ae1a6
commit
cf7eb60195
1 changed files with 2 additions and 0 deletions
|
@ -248,6 +248,7 @@ async fn list_plays<'a>(
|
|||
return Ok(false);
|
||||
}
|
||||
|
||||
let hourglass = msg.react(ctx, '⌛').await?;
|
||||
let plays = &plays[start..end];
|
||||
let beatmaps = plays
|
||||
.iter()
|
||||
|
@ -364,6 +365,7 @@ async fn list_plays<'a>(
|
|||
m.push_line("[?] means pp was predicted by oppai-rs.");
|
||||
}
|
||||
msg.edit(ctx, |f| f.content(m.to_string())).await?;
|
||||
hourglass.delete(ctx).await?;
|
||||
Ok(true)
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue