{"repo":"discord/avatar-remix-bot","free":true,"listed":false,"github":"https://github.com/discord/avatar-remix-bot","clone":"git clone https://github.com/discord/avatar-remix-bot.git","description":"This project contains code for a Discord bot that will edit friends' profile pictures in fun and sometimes unexpected ways.","language":"TypeScript","stars":128,"topics":["bot","samples"],"license":"MIT","category":"machine-learning","readme_excerpt":"Avatar Remix This project contains code for a Discord bot that will edit friends' profile pictures in fun and sometimes unexpected ways. Try it out Replicate has provided a hosted version of this bot. You can invite the hosted bot to your Discord server, or follow this README to set up and host your own custom version. How it works The main functionality of Avatar Remix is provided by instruct-pix2pix, a model based on Stable Diffusion fine-tuned on a large dataset of example prompts generated by GPT-3. Discord profile pictures are often pretty small, so if necessary it uses Real-ESRGAN to upscale for better results. This app runs as a Cloudflare Worker and uses the Replicate API to run the above models serverlessly. Setup Install dependencies This bot runs on Node and its package manager, npm. If you don't already have node and npm set up, following this guide. Install the bot's dependencies by running: Set up external accounts This bot uses Cloudflare Workers and Replicate. You'll need to: - Set up wrangler locally (see Cloudflare docs) - Get a Replicate API token Create a Discord application Create a new application on the Discord Developer portal. Give it a name like avatar-remix-bot . Then, in the \"Bot\" settings tab of your application, click \"Add Bot\" (we don't actually need this bot user, but we use its token for convenience...) See the Getting Started guide on the Discord developer portal for more details. NOTE: if you use the code in this project to build or operate ","default_branch":null,"files":null,"tree":[],"storefront":"/r/discord","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/discord/avatar-remix-bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}