Skip to content

Commit

Permalink
Text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rushsteve1 committed Dec 31, 2023
1 parent b59a198 commit df5719f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/commands/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ async fn handle_spill_command(ctx: Ctx, interaction: &Interaction) -> anyhow::Re
.await?;

Ok(format!(
"# ALERT A SPILL HAS OCCURED\nINFORMING THE COMMANDING OFFICER {}",
"# SPILL ALERT\n{} **HAS SPILLED**\n**INFORMING THE COMMANDING OFFICER** {}\n\nThis incident has been recorded.",
author.mention(),
UserId::new(115178518391947265).mention()
))
}
Expand Down
2 changes: 1 addition & 1 deletion src/web/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async fn drunks(State(db): State<SqlitePool>) -> Result<DrunksTemplate, AppError
(
d.last_spill
.map(|o| o.to_string())
.unwrap_or("Never!".to_string()),
.unwrap_or("N/A".to_string()),
d,
)
})
Expand Down
2 changes: 1 addition & 1 deletion templates/drunks.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1>Drunks List</h1>
<th>Derby</th>
<th>Last Drink</th>
<th>Last Drink At</th>
<th>Last Spill Time</th>
<th>Last Spill At</th>
</thead>
<tbody>
{% for (spill_str, drunk) in drunks %}
Expand Down

0 comments on commit df5719f

Please sign in to comment.