parent
2aa027159e
commit
603ea0ab66
@ -197,10 +197,11 @@ pub async fn game(ctx: Context<'_>) -> Result<(), Error> {
|
||||
|
||||
if let Some(react) = collector.await {
|
||||
let reacting_user = react.user(ctx.http()).await?;
|
||||
ctx.say(format!("{} was first to react! yay!", reacting_user)).await?;
|
||||
ctx.say(format!("{} was first to react! yay!", reacting_user))
|
||||
.await?;
|
||||
} else {
|
||||
ctx.say("Nobody reacted. Game over </3").await?;
|
||||
}
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
2
src/event_handlers.rs
Normal file
2
src/event_handlers.rs
Normal file
@ -0,0 +1,2 @@
|
||||
#[allow(dead_code)]
|
||||
const SLOP_SCOUNDREL_ROLE_ID: u64 = 1508961172223951078;
|
||||
@ -40,6 +40,8 @@ use crate::command::{
|
||||
util::*,
|
||||
};
|
||||
|
||||
mod event_handlers;
|
||||
|
||||
// Path at which our settings are stored (currently PWD)
|
||||
//const SETTINGS_PATH: &str = "settings.json";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user