Add rushia command

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/26/head
trivernis 3 years ago
parent b9f9359ed7
commit 6f58bd2fc1
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -3,6 +3,7 @@ use serenity::framework::standard::macros::group;
mod korone;
mod matsuri;
mod pekofy;
mod rushia;
mod sauce;
use crate::utils::context_data::get_database_from_context;
@ -15,10 +16,11 @@ use serenity::model::channel::Message;
use korone::KORONE_COMMAND;
use matsuri::MATSURI_COMMAND;
use pekofy::PEKOFY_COMMAND;
use rushia::RUSHIA_COMMAND;
use sauce::SAUCE_COMMAND;
#[group]
#[commands(pekofy, sauce, matsuri, korone)]
#[commands(pekofy, sauce, matsuri, korone, rushia)]
pub struct Weeb;
/// Posts a random media entry with the given category

@ -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 rushia")]
#[usage("")]
#[aliases("cuttingboard", "cutting-board", "petan")]
#[bucket("general")]
async fn rushia(ctx: &Context, msg: &Message) -> CommandResult {
post_random_media(ctx, msg, "rushia").await
}
Loading…
Cancel
Save