blob: 345f753db1e07ee28eb87ab11a3803b2f89cf116 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use crate::utils::get_random_lore;
use serenity::builder::CreateApplicationCommand;
use serenity::model::prelude::interaction::application_command::CommandDataOption;
pub async fn run(_: &[CommandDataOption]) -> String {
get_random_lore().await
}
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
command
.name("random_lore")
.description("get a random piece of teawie lore!")
}
|