Coder Social home page Coder Social logo

mapxor12 / discord-avatar-decoration-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wickstudio/discord-avatar-decoration-bot

0.0 0.0 0.0 14 KB

This is a Discord bot that allows users to decorate their avatars with over 100 unique visual effects, including paid avatar effects available through Discord Nitro for free.

License: MIT License

JavaScript 100.00%

discord-avatar-decoration-bot's Introduction

Discord Avatar Decoration Bot

This is a Discord bot that allows users to decorate their avatars with unique visual effects. The bot is built using discord.js, canvas, and gif-encoder-2. The effects are provided in the effects.json file, and users can select them via a slash command to apply to their avatars.

Features

  • Select from a variety of visual effects to decorate your avatar.
  • The bot generates a GIF with the chosen effect and sends it back to the user.
  • Handles different categories of effects with emoji representation.
  • Designed to be extensible and easy to configure.

Setup

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/wickstudio/discord-avatar-decoration-bot.git
    cd discord-avatar-decoration-bot
  2. Install the dependencies:

    npm install
  3. Configure the bot by creating a config.js file in the root directory and adding your Discord bot token and guild ID:

    module.exports = {
      guildId: "YOUR_GUILD_ID",
      token: "YOUR_BOT_TOKEN"
    };
  4. Create a effects.json file in the root directory to define the available effects. Here is an example:

    [
      {
        "id": "1232071069268049920",
        "url": "https://cdn.discordapp.com/avatar-decoration-presets/a_a47890109a231f72dae7b17b27164676.png?size=240&passthrough=true",
        "label": "A glittering ring of colorful stardust adorns the avatar with a celestial touch.",
        "category": "decorations",
        "emoji": "<emoji_1232071069268049920:1238864757491109889>"
      },
      ...
    ]

Running the Bot

Start the bot with the following command:

node index.js

Usage

  • Invite the bot to your Discord server.
  • Use the /effect command to bring up the menu of available effects.
  • Select an effect from the dropdown menu to apply it to your avatar.
  • The bot will generate a GIF with the chosen effect and send it back to you.

Contributing

If you would like to contribute to this project, please feel free to submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Contact

discord-avatar-decoration-bot's People

Contributors

wickstudio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.