/discord-js-bot-with-slash-commands

multipurpose discord bot with slash commands using discord.js library

Primary LanguageJavaScriptOtherNOASSERTION

Discord Bot with Slash Commands

Slasher

A feature-rich Discord bot created by M.A.K GAMER to supercharge your server with fun, information, management, moderation, and utility commands. Enhance your Discord experience effortlessly!

Features

Fun Commands Using GIPHY API

Chatbot

The chatbot command activates the chatbot feature in the channel where it is used. The bot engages with users using the Gemini API and resets upon restart.

Fun Commands ๐ŸŽ‰

  • ๐ŸŒŸ hug - Send a virtual hug.
  • ๐Ÿ’‹ kiss - Blow a kiss.
  • ๐Ÿค— pat - Pat someone's head.
  • ๐Ÿ‘Š punch - Give a light-hearted punch.
  • ๐Ÿซก salute - Show some respect.
  • ๐Ÿ–๏ธ slap - Deliver a playful slap.
  • ๐Ÿ‘‹ wave - Wave hello.

Information Commands ๐Ÿ“š

  • ๐Ÿค– botinfo - Get details about the bot.
  • โ“ help - Display all available commands.
  • ๐Ÿ“ถ ping - Check the bot's response time.
  • โณ uptime - See how long the bot has been running.

Management Commands ๐Ÿ› ๏ธ

  • ๐Ÿšซ hide - Conceal a specific channel.
  • ๐Ÿ•ต๏ธ hideall - Conceal all channels.
  • ๐Ÿ”’ lock - Lock a channel.
  • ๐Ÿ”’ lockall - Lock all channels.
  • ๐Ÿ‘€ unhide - Reveal a concealed channel.
  • ๐Ÿ‘€ unhideall - Reveal all concealed channels.
  • ๐Ÿ”“ unlock - Unlock a channel.
  • ๐Ÿ”“ unlockall - Unlock all channels.

Moderation Commands โš–๏ธ

  • โž• roleadd - Assign a role to a user.
  • โž– roleremove - Remove a role from a user.
  • ๐Ÿšท ban - Ban a user from the server.
  • ๐Ÿฆต kick - Kick a user from the server.
  • ๐Ÿ”‡ mute - Mute a member.
  • ๐Ÿ“› nickname - Change a member's nickname.
  • ๐Ÿงน purge - Delete multiple messages.
  • ๐Ÿ†” resetnick - Reset a member's nickname.
  • โš–๏ธ unban - Unban a user.
  • ๐Ÿ”Š unmute - Unmute a member.

Utility Commands ๐Ÿ› ๏ธ

  • ๐Ÿ‘ค avatar - Retrieve a user's avatar.
  • ๐Ÿณ๏ธ banner - Get a user's banner.
  • ๐Ÿ—จ๏ธ chatbot - Interact with the bot.
  • ๐Ÿ  serverinfo - Get information about the server.
  • ๐Ÿ•ต๏ธ๏ธ snipe - Retrieve the last deleted message.
  • ๐Ÿ“ userinfo - Get details about a user.

Developer Commands

  • reload - Reload any command.

Installation

  1. Clone the repository:

    git clone https://github.com/makgamerofficial/discord-js-bot-with-slash-commands.git
    cd discord-js-bot-with-slash-commands
  2. Install dependencies:

    npm install
  3. Configure config.js with your details:

    token,
    clientId,
    guildId,
    ownerId,
    mongo_uri,
    giphy_api_key,
    gemini_api_key,
    
  4. Run the bot:

    node index.js

    Register commands globally:

    node deploy-commands.js
  5. Get the Gemini API key from Google AI Studio and the Giphy API key from the Giphy Dashboard.