feat!: begin rust rewrite

service scheduling, configs, all dependencies, tracing, graceful
shutdown, concurrency
This commit is contained in:
2025-08-26 15:22:44 -05:00
parent e081e7f493
commit d4c55a3fd8
27 changed files with 4045 additions and 3682 deletions
+16
View File
@@ -0,0 +1,16 @@
use poise::serenity_prelude as serenity;
pub struct Data {} // User data, which is stored and accessible in all command invocations
pub type Error = Box<dyn std::error::Error + Send + Sync>;
pub type Context<'a> = poise::Context<'a, Data, Error>;
/// Displays your or another user's account creation date
#[poise::command(slash_command, prefix_command)]
pub async fn age(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
) -> Result<(), Error> {
let u = user.as_ref().unwrap_or_else(|| ctx.author());
let response = format!("{}'s account was created at {}", u.name, u.created_at());
ctx.say(response).await?;
Ok(())
}