From 329ffe01c82c4842d15a8c9af4432cad4c43c195 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 11 Aug 2021 19:41:32 +0200 Subject: [PATCH] Add polka command Signed-off-by: trivernis --- src/commands/weeb/hololive/mod.rs | 1 + src/commands/weeb/hololive/polka.rs | 14 ++++++++++++++ src/commands/weeb/mod.rs | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/commands/weeb/hololive/polka.rs diff --git a/src/commands/weeb/hololive/mod.rs b/src/commands/weeb/hololive/mod.rs index 6b43630..cfa16a9 100644 --- a/src/commands/weeb/hololive/mod.rs +++ b/src/commands/weeb/hololive/mod.rs @@ -7,5 +7,6 @@ pub mod korone; pub mod matsuri; pub mod miko; pub mod pekofy; +pub mod polka; pub mod rushia; pub mod watame; diff --git a/src/commands/weeb/hololive/polka.rs b/src/commands/weeb/hololive/polka.rs new file mode 100644 index 0000000..1476975 --- /dev/null +++ b/src/commands/weeb/hololive/polka.rs @@ -0,0 +1,14 @@ +use crate::commands::weeb::post_random_media; +use serenity::client::Context; +use serenity::framework::standard::macros::command; +use serenity::framework::standard::CommandResult; +use serenity::model::channel::Message; + +#[command] +#[description("Posts a random pol")] +#[usage("")] +#[aliases("pol", "omarun", "omapol")] +#[bucket("general")] +async fn polka(ctx: &Context, msg: &Message) -> CommandResult { + post_random_media(ctx, msg, "polka").await +} diff --git a/src/commands/weeb/mod.rs b/src/commands/weeb/mod.rs index 66be0be..9fe9e9f 100644 --- a/src/commands/weeb/mod.rs +++ b/src/commands/weeb/mod.rs @@ -13,6 +13,7 @@ use hololive::korone::KORONE_COMMAND; use hololive::matsuri::MATSURI_COMMAND; use hololive::miko::MIKO_COMMAND; use hololive::pekofy::PEKOFY_COMMAND; +use hololive::polka::POLKA_COMMAND; use hololive::rushia::RUSHIA_COMMAND; use hololive::watame::WATAME_COMMAND; use sauce::SAUCE_COMMAND; @@ -28,7 +29,7 @@ mod theme; #[group] #[commands( pekofy, sauce, matsuri, korone, rushia, fubuki, miko, theme, watame, inanis, gura, amelia, - haachama + haachama, polka )] pub struct Weeb;