diff options
| author | seth <[email protected]> | 2023-12-02 07:00:24 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-15 16:41:13 -0500 |
| commit | 0025ad5ea8d412aacc3184d18063fd5ff3de0175 (patch) | |
| tree | 1d2b5ac5c04a092756180722358d929feeae50aa /src/commands/general/ask.rs | |
| parent | ac32ec2a0ba37deb0ad82b4f2ee9c1e1b359cc88 (diff) | |
feat: add per guild configuration
Diffstat (limited to 'src/commands/general/ask.rs')
| -rw-r--r-- | src/commands/general/ask.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/commands/general/ask.rs b/src/commands/general/ask.rs new file mode 100644 index 0000000..4bbf82e --- /dev/null +++ b/src/commands/general/ask.rs @@ -0,0 +1,17 @@ +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(()) +} |
