This Discord bot converts GIFs and MP4 files into sprite sheets for use as animated emojis in VRChat! Works with uploaded files, links, or GIFs from the Discord GIF menu! The bot also provides detailed information in a pretty embed :)
- Converts GIFs and MP4 files into sprite sheets for VRChat animated emojis.
- Supports direct file uploads and links (including Tenor GIFs from the Discord GIF Menu).
- Automatically determines the correct frame count and FPS.
- Maintains aspect ratio and centers frames within cells.
- Provides detailed information about the conversion process.
- Sends results as a pretty embed message with the sprite sheet image.
- Python 3.9+
- Required Python packages (see below!)
- FFmpeg
- ImageMagick
-
Clone this repository:
git clone https://github.com/KenDingel/VRC_AnimojiMaker.git cd VRC_AnimojiMaker
-
Install the required Python packages:
pip install Wand nextcord requests beautifulsoup4
-
Install FFmpeg and ImageMagick:
- Windows:
- FFmpeg: Download from ffmpeg.org and add to PATH.
- ImageMagick: Use the instructions provided by Wand for proper set up! BE SURE TO INSTALL DEV C++ IN THE INSTALL!
- macOS (using Homebrew):
brew install ffmpeg imagemagick
- Linux (Ubuntu/Debian):
sudo apt-get update sudo apt-get install ffmpeg imagemagick
- Windows:
-
Create a
config.json
file in the project root:{ "token": "YOUR_BOT_TOKEN_HERE", "channel_id": YOUR_CHANNEL_ID_HERE, "log_file": "bot.log" }
Replace
YOUR_BOT_TOKEN_HERE
with your Discord bot token andYOUR_CHANNEL_ID_HERE
with the ID of the channel where the bot should operate.
-
Run the bot:
python run_me_for_gif_fun.py
-
Use the bot in the designated Discord channel:
- Upload a GIF or MP4 file directly.
- Send a link to a GIF or MP4 file.
- Send a Tenor GIF link via the Discord GIF menu.
-
The bot will process the file and reply with:
- An embed message containing detailed information about the conversion.
- The generated sprite sheet image.
Contributions are welcome! Please feel free to submit a Pull Request.
When using the generated sprite sheets in VRChat, ensure they comply with VRChat's content guidelines. Content should be safe for work and not include any inflammatory or suggestive material.