Get started with Peachy now 🍑
PEACHYPEACHY
Action

Slap

The `slap` command allows users to playfully slap other users with comedic animated GIF responses in lighthearted interactions.

Command Details

  • Name: slap
  • Aliases: None
  • Category: Action
  • Description: Playfully slap another user in a lighthearted manner
  • Usage: P slap @user, p slap @user, or /slap @user
  • Examples:
    • P slap @JohnDoe
    • p slap @annoying_friend
    • /slap @joker
  • Cooldown: 3 seconds
  • Arguments: user (required) - The user you want to slap
  • Slash Command: Enabled
  • Permissions:
    • Bot: SendMessages, ViewChannel, EmbedLinks
    • User: None
  • Player Requirements: None (no voice, DJ, or active player required)

Functionality

  • Comedic Social Interaction: Enables lighthearted disciplinary actions with slap-themed humor.
  • Funny Animated GIFs: Features amusing animated images from comedy and slapstick collections.
  • Playful Discipline: Allows users to express mock annoyance or playful correction.
  • Random Comedy Selection: Chooses from various humorous and exaggerated slap animations.
  • Lighthearted Context: Maintains clearly comedic, non-serious atmosphere for all interactions.
  • Humor and Banter: Encourages funny moments and comedic exchanges between users.
  • Self-Slap Comedy: May include special humorous responses for users slapping themselves.
  • Slapstick Entertainment: Provides classic comedy moments in server interactions.
  • Comedic Timing: Adds perfectly timed comedic elements to social situations.
  • Visual Comedy: Uses funny animations to enhance the comedic impact of interactions.

Code Overview

The command is built using a Command class structure and handles both message-based and interaction-based (slash command) inputs. It uses:

  • User validation ensuring appropriate targets while maintaining comedic, lighthearted context.

  • client.embed() creation with humorous descriptions emphasizing the comedic aspect.

  • Random selection from a collection of funny, slapstick-themed animated GIFs.

  • setImage() method to display selected comedy animations within the response embed.

  • Comedic messaging framework that maintains humor while avoiding any serious implications.

  • Error handling for invalid users, permission issues, or content delivery problems.

  • Cooldown management preventing spam while allowing natural comedic interaction flow.

  • Special handling for self-targeting with appropriate self-deprecating humor responses.

  • Embed styling with bright colors, comedy emojis, and playful presentation elements.

  • Integration with Discord user systems for reliable comedic interaction processing.

  • No special permissions required

  • Can be used in any channel where the bot has message permissions

Note

This is meant for playful banter and entertainment. All actions are in good fun!