Skip to content

Commit

Permalink
Remove the unnecessary command renaming
Browse files Browse the repository at this point in the history
`:bufdo %s/, rename\"\w*\"` -> `:wa`
  • Loading branch information
1Git2Clone committed Dec 15, 2024
1 parent bccd128 commit 746ef0a
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/commands/embed_commands/avatar.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Get the avatar for someone.
#[poise::command(slash_command, prefix_command, rename = "avatar")]
#[poise::command(slash_command, prefix_command)]
pub async fn avatar(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/bonk.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Bonk someone who's horknee
#[poise::command(prefix_command, slash_command, rename = "bonk")]
#[poise::command(prefix_command, slash_command)]
pub async fn bonk(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/boom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use cmd_utils::HU_BOOM_URL;
use super::*;

/// Just try it.
#[poise::command(slash_command, prefix_command, rename = "boom")]
#[poise::command(slash_command, prefix_command)]
pub async fn boom(ctx: Context<'_>) -> Result<(), Error> {
let bot_user = Arc::clone(&ctx.data().bot_user);
let bot_avatar = bot_user.face().replace(".webp", ".png");
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/bury.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Bury someone
#[poise::command(prefix_command, slash_command, rename = "bury")]
#[poise::command(prefix_command, slash_command)]
pub async fn bury(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/chair.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Get a motivation chair GIF
#[poise::command(slash_command, prefix_command, rename = "chair")]
#[poise::command(slash_command, prefix_command)]
pub async fn chair(ctx: Context<'_>) -> Result<(), Error> {
let embed_item: &str = cmd_utils::get_rand_embed_from_type(&EmbedType::Chair)?;
let bot_user = Arc::clone(&ctx.data().bot_user);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/drive.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Get a Ryan Gosling drive GIF.
#[poise::command(slash_command, prefix_command, rename = "drive")]
#[poise::command(slash_command, prefix_command)]
pub async fn drive(ctx: Context<'_>) -> Result<(), Error> {
let embed_item: &str = cmd_utils::get_rand_embed_from_type(&EmbedType::RyanGoslingDrive)?;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/hug.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Hug someone
#[poise::command(prefix_command, slash_command, rename = "hug")]
#[poise::command(prefix_command, slash_command)]
pub async fn hug(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/kick.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Kick someone
#[poise::command(prefix_command, slash_command, rename = "kick")]
#[poise::command(prefix_command, slash_command)]
pub async fn kick(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/kill.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Kill someone (Sadge)
#[poise::command(prefix_command, slash_command, rename = "kill")]
#[poise::command(prefix_command, slash_command)]
pub async fn kill(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/kiss.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Kiss someone
#[poise::command(prefix_command, slash_command, rename = "kiss")]
#[poise::command(prefix_command, slash_command)]
pub async fn kiss(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/nom.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Nom someone
#[poise::command(prefix_command, slash_command, rename = "nom")]
#[poise::command(prefix_command, slash_command)]
pub async fn nom(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/pat.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Pat someone
#[poise::command(prefix_command, slash_command, rename = "pat")]
#[poise::command(prefix_command, slash_command)]
pub async fn pat(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/peek.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Send a peek GIF in the chat (you lurker)
#[poise::command(prefix_command, slash_command, rename = "peek")]
#[poise::command(prefix_command, slash_command)]
pub async fn peek(ctx: Context<'_>) -> Result<(), Error> {
let embed_item: &str = cmd_utils::get_rand_embed_from_type(&EmbedType::Peek)?;
let response: String = format!("{} is lurking . . .", ctx.author().name,);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/punch.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Punch someone
#[poise::command(prefix_command, slash_command, rename = "punch")]
#[poise::command(prefix_command, slash_command)]
pub async fn punch(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/selfbury.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Bury yourself (perhaps to help Hu Tao's busines idk...)
#[poise::command(prefix_command, slash_command, rename = "selfbury")]
#[poise::command(prefix_command, slash_command)]
pub async fn selfbury(ctx: Context<'_>) -> Result<(), Error> {
let embed_item: &str = cmd_utils::get_rand_embed_from_type(&EmbedType::SelfBury)?;
let response: String = format!("**{}** *buries themselves*", ctx.author().name,);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/slap.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Slap someone
#[poise::command(prefix_command, slash_command, rename = "slap")]
#[poise::command(prefix_command, slash_command)]
pub async fn slap(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/embed_commands/tieup.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Tie someone up (HUH?)
#[poise::command(prefix_command, slash_command, rename = "tieup")]
#[poise::command(prefix_command, slash_command)]
pub async fn tieup(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/level_cmds/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const LEVEL_STEPS: [f32; 14] = [
];

/// Displays the user's level
#[poise::command(slash_command, prefix_command, rename = "level")]
#[poise::command(slash_command, prefix_command)]
pub async fn level(
ctx: Context<'_>,
#[description = "Selected user"] user: Option<serenity::User>,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/level_cmds/toplevels.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;

/// Displays the levels for the top 9 users.
#[poise::command(slash_command, prefix_command, rename = "toplevels")]
#[poise::command(slash_command, prefix_command)]
pub async fn toplevels(ctx: Context<'_>) -> Result<(), Error> {
let message_guild_id = match ctx.guild_id() {
Some(msg) => msg,
Expand Down

0 comments on commit 746ef0a

Please sign in to comment.