Skip to content

Commit cd90535

Browse files
committed
fix
1 parent 1678514 commit cd90535

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

flake.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@
2222
pkgs = import nixpkgs {
2323
inherit system overlays;
2424
};
25-
rustToolchain = pkgs.rust-bin.beta.latest.default;
25+
rustToolchain = pkgs.rust-bin.beta.latest.default.override {
26+
extensions = [
27+
"rust-src"
28+
"rust-analyzer"
29+
"clippy"
30+
"rustc-dev"
31+
"llvm-tools-preview"
32+
];
33+
};
2634
in
2735
{
2836
packages = {

src/quiz_handler.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,8 @@ pub async fn handle_color_quiz(
139139
if elapsed.as_secs() > 60 {
140140
locked_state.pending_color_tests.remove(&msg.channel_id.get());
141141

142-
if let Some(guild_id) = msg.guild_id {
143-
apply_timeout(http, guild_id, original_user_id).await;
144-
}
145-
146142
return Some(Command::text(format!(
147-
"<@{}> Time's up! The color was `rgb({}, {}, {})` or `#{:02x}{:02x}{:02x}`. You've been timed out for 1 minute.",
143+
"<@{}> Time's up! The color was `rgb({}, {}, {})` or `#{:02x}{:02x}{:02x}`.",
148144
original_user_id, r, g, b, r, g, b
149145
)));
150146
}

0 commit comments

Comments
 (0)