17 lines
439 B
Rust
17 lines
439 B
Rust
|
use poise;
|
||
|
// use super::super::types::Data;
|
||
|
|
||
|
type Error = Box<dyn std::error::Error + Send + Sync>;
|
||
|
type Context<'a> = poise::Context<'a, (), Error>;
|
||
|
|
||
|
#[poise::command(
|
||
|
slash_command,
|
||
|
description_localized("en-US", "Make me say something!")
|
||
|
)]
|
||
|
pub async fn say(ctx: Context<'_>,
|
||
|
#[description = "What will you make me say this time? 🙃"]
|
||
|
message: String
|
||
|
) -> Result<(), Error> {
|
||
|
ctx.say(message).await?;
|
||
|
Ok(())
|
||
|
}
|