moderatior
update?
bendn 4 days ago
parent afeee61 · commit 2ca18d8
-rw-r--r--Cargo.toml3
-rw-r--r--src/main.rs4
2 files changed, 3 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5e2ce70..9c1e3b0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "moderatior"
version = "0.1.0"
-edition = "2021"
+edition = "2024"
[dependencies]
tokio = { version = "1.28.2", features = [
@@ -20,7 +20,6 @@ serenity = { version = "0.12", features = [
poise = { git = "https://github.com/serenity-rs/poise" }
anyhow = "1.0.75"
jemallocator-global = "0.3.2"
-ahash = "0.8.11"
emojib = { git = "https://github.com/Apricot-Conservation-Project/emoji", package = "emoji" }
kv = { version = "0.24.0", features = ["bincode-value"] }
sled = { version = "0.34.7", features = ["compression"] }
diff --git a/src/main.rs b/src/main.rs
index 339abb8..2ddb660 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,3 @@
-#![feature(if_let_guard, let_chains, generic_const_exprs)]
use anyhow::Result;
emojib::the_crate!();
use emoji::named::*;
@@ -226,8 +225,9 @@ impl Bot {
.options(poise::FrameworkOptions {
commands: vec![help(), reload(), redact()],
on_error: |e| Box::pin(on_error(e)),
- event_handler: |c, e, _, _| {
+ event_handler: |c, e| {
Box::pin(async move {
+ let c = c.serenity_context;
match e {
FullEvent::GuildAuditLogEntryCreate { entry, .. } => {
let Some(h) = format(entry.clone()) else {