Remove ping command

This commit is contained in:
2025-01-30 02:34:39 +00:00
parent 982156e443
commit f4bace71e9
2 changed files with 0 additions and 24 deletions

View File

@@ -3,7 +3,6 @@ use cipher_core::repository::RepositoryProvider;
use crate::app::AppCommand;
mod help;
mod ping;
mod profile;
pub fn commands<R>() -> Vec<AppCommand<R, R::BackendError>>
@@ -12,7 +11,6 @@ where
{
vec![
help::help(),
ping::ping(),
profile::profile(),
]
}

View File

@@ -1,22 +0,0 @@
use poise::CreateReply;
use cipher_core::repository::RepositoryProvider;
use serenity::all::CreateEmbed;
use crate::app::AppContext;
use crate::app::AppError;
use crate::utils;
/// Is the bot alive or dead? :thinking:
#[poise::command(slash_command)]
pub async fn ping<R: RepositoryProvider + Send + Sync>(ctx: AppContext<'_, R, R::BackendError>) -> Result<(), AppError<R::BackendError>> {
let embed = CreateEmbed::new()
.title("Pong :ping_pong:")
.color(utils::bot_color(&ctx).await);
let reply = CreateReply::default()
.embed(embed);
ctx.send(reply).await?;
Ok(())
}