blob: 6188f437aeb79b445697111a646dec75cec753aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use crate::utils;
use serenity::builder::CreateApplicationCommand;
use serenity::model::prelude::command::CommandOptionType;
use serenity::model::prelude::interaction::application_command::CommandDataOption;
pub async fn run(_: &[CommandDataOption]) -> String {
utils::get_random_response().await
}
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
command
.name("ask")
.description("ask lord teawie a question and they shall respond")
.create_option(|option| {
option
.name("question")
.description("the question you want to ask teawie")
.kind(CommandOptionType::String)
.required(true)
})
}
|