blob: 3f225bb5ee2237a6bbe76858ff68e75d5eec231a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use crate::{consts, utils, Context};
use color_eyre::eyre::{Context as _, Result};
/// Ask teawie a question!
#[poise::command(prefix_command, slash_command)]
pub async fn ask(
ctx: Context<'_>,
#[description = "The question you want to ask teawie"]
#[rename = "Question"]
_question: String,
) -> Result<()> {
let resp = utils::random_choice(consts::RESPONSES)
.wrap_err("Couldn't choose from random responses!")?;
ctx.say(resp).await?;
Ok(())
}
|