Remove ping command
This commit is contained in:
@@ -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(),
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
Reference in New Issue
Block a user