parent
2aa027159e
commit
603ea0ab66
@ -197,7 +197,8 @@ pub async fn game(ctx: Context<'_>) -> Result<(), Error> {
|
|||||||
|
|
||||||
if let Some(react) = collector.await {
|
if let Some(react) = collector.await {
|
||||||
let reacting_user = react.user(ctx.http()).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 {
|
} else {
|
||||||
ctx.say("Nobody reacted. Game over </3").await?;
|
ctx.say("Nobody reacted. Game over </3").await?;
|
||||||
}
|
}
|
||||||
|
|||||||
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::*,
|
util::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mod event_handlers;
|
||||||
|
|
||||||
// Path at which our settings are stored (currently PWD)
|
// Path at which our settings are stored (currently PWD)
|
||||||
//const SETTINGS_PATH: &str = "settings.json";
|
//const SETTINGS_PATH: &str = "settings.json";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user