blob: b0b24f35155ef67fa46bd4d540b29b6ea7651254 (
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 fn run(_: &[CommandDataOption]) -> String {
utils::get_random_response()
}
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)
})
}
|