{"id":16608769,"url":"https://github.com/mak448a/ai-drawing-chatbot","last_synced_at":"2025-03-16T21:30:57.673Z","repository":{"id":157789988,"uuid":"618567675","full_name":"mak448a/AI-Drawing-Chatbot","owner":"mak448a","description":"An image generator Discord bot written in Python with no GPU requirement! It can be easily deployed to your favorite VPS for hosting.","archived":true,"fork":false,"pushed_at":"2025-02-17T00:18:33.000Z","size":1427,"stargazers_count":27,"open_issues_count":7,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T06:04:42.818Z","etag":null,"topics":["ai","anything-v3","anythingv3","bot","chatgpt","discord","discord-bot","discord-py","image-generation","imaginepy","llm","openai","pollinations","python","replit","stable-diffusion","stable-diffusion-xl","stable-horde"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mak448a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-24T18:53:14.000Z","updated_at":"2025-03-09T23:50:01.000Z","dependencies_parsed_at":"2023-10-01T20:50:26.811Z","dependency_job_id":"39143185-470d-47da-adbd-ffb8dd5203eb","html_url":"https://github.com/mak448a/AI-Drawing-Chatbot","commit_stats":null,"previous_names":["mak448a/ai-drawing-chatbot"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mak448a%2FAI-Drawing-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mak448a%2FAI-Drawing-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mak448a%2FAI-Drawing-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mak448a%2FAI-Drawing-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mak448a","download_url":"https://codeload.github.com/mak448a/AI-Drawing-Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243936462,"owners_count":20371519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","anything-v3","anythingv3","bot","chatgpt","discord","discord-bot","discord-py","image-generation","imaginepy","llm","openai","pollinations","python","replit","stable-diffusion","stable-diffusion-xl","stable-horde"],"created_at":"2024-10-12T01:27:10.694Z","updated_at":"2025-03-16T21:30:57.666Z","avatar_url":"https://github.com/mak448a.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Drawing Chatbot\n\nHi everyone, I'm going to archive this repository. If you want me to continue development, just send me an email or a message at Discord. Bye!\n\n\n[![Discord Invite](https://dcbadge.limes.pink/api/server/https://discord.gg/gV8SjzZAXj?style=flat)](https://discord.gg/gV8SjzZAXj)\n![](https://img.shields.io/github/license/mak448a/AI-Drawing-Chatbot)\n![](https://img.shields.io/github/contributors/mak448a/AI-Drawing-Chatbot)\n![](https://img.shields.io/github/repo-size/mak448a/AI-Drawing-Chatbot)\n\nThis is a completely free and open source AI image generator Discord bot written in Python. It has a Llama 3 based chatbot that you can ask to draw pictures! This project uses various free APIs, which allows it to run on less powerful computers.\n\u003e **Note: If this project is not https://github.com/mak448a/AI-Drawing-Chatbot, then it is unofficial. Please visit the official repo.**\n\n![Demo picture](assets/demo.png)\n\n## Table of Contents\n1. [Features](#Features)\n2. [Notes](#Notes)\n3. [Prerequisites](#Prerequisites)\n4. [Windows Setup](#windows-setup)\n5. [Docker Setup](#docker-setup)\n6. [Linux/macOS Setup](#linux-and-macos-setup)\n7. [Manual Configuration](#Manual-Configuration)\n8. [Generate images faster with Stable Horde](#Generate-images-faster-with-Stable-Horde)\n\n\n## Features\n- AI chatbot which is integrated with Stable Diffusion\n- 2 slash commands for generating images\n- Stable Diffusion\n- SDXL Beta\n- Pollinations\n- Anything Diffusion\n- And more!\n\n\n## Notes\n- Llama3 is the recommended model.\n- When using SDXL-Beta it sends your generated images to improve the model.\n- Do not input any personal information on the `/imagine_poly` command because your generated image will be displayed\non their official frontpage.\n- Please do not enter any personal information in the chatbot or in the image generators,\nbecause your prompts are sent to various providers.\n- When you use Stable Horde to generate images, your prompts are sent to Stable Horde, as listed in their [privacy policy](https://stablehorde.net/privacy).\n- The chatbot will not work as expected if multiple users are chatting with it at once.\n\n\n## Prerequisites\nThis project assumes that:\n- Python 3.12+ is installed and is on your PATH\n- Pip is installed\n- Git is installed\n- You know how to create a Discord Bot account\n- The package python-venv is installed (only for certain Linux distros)\n\n\n## Windows Setup\n1. Create a Discord Bot and grab the token. Make sure to switch on Message Content Intent in the `Bot` tab of the \n[Developer Portal](https://discord.com/developers/applications).\n2. Grab an API key from Stable Horde [at their register page](https://stablehorde.net/register).\n3. Clone the Stable Horde module: `git clone https://github.com/mak448a/horde_module helper_utils/horde_module --depth=1`\n4. Create venv and install dependencies: `python -m venv venv` `venv\\Scripts\\activate.bat`\n`pip install -r requirements.txt`\n5. Grab your Groq key from here: `https://console.groq.com/keys`.\n6. Run `python run.py` and fill in all the information it asks for.\n7. Invite the bot with the link it provides!\n8. You can chat with the bot by mentioning it and typing your message.\n\n## Linux and macOS Setup\n1. Create a Discord Bot and grab the token. Make sure to switch on Message Content Intent in the `Bot` tab of the \n[Developer Portal](https://discord.com/developers/applications).\n2. Grab an API key from Stable Horde [at their register page](https://stablehorde.net/register).\n3. Create venv and install dependencies: `python3 -m venv venv \u0026\u0026 source venv/bin/activate \u0026\u0026 pip install -r requirements.txt`\n4. Clone the Stable Horde module: `git clone https://github.com/mak448a/horde_module helper_utils/horde_module --depth=1`\n5. Grab your Groq key from here: `https://console.groq.com/keys`.\n6. Run `python3 run.py` and fill in all the information it asks for.\n7. Invite the bot with the link it provides!\n8. You can chat with the bot by mentioning it and typing your message.\n\n## Docker Setup\n1. Make sure you have Docker installed on your machine.\n2. Clone this repository to your local machine.\n3. Build the Docker image using the following command: `docker build -t ai-drawing-chatbot .`\n4. Run the Docker container using the following command: `docker run -it --name chatbot ai-drawing-chatbot`\n5. Enter in your token values. Go [here](#linux-and-macos-setup) to find out how to get these.\n\n\n## Manual Configuration\n\nIf you want to manually configure the program for any reason, here's how.\n\n\u003cdetails\u003e\u003csummary\u003eConfiguring chat model\u003c/summary\u003e\n\nGo to `config.json` and set the key `\"model\"` to the model you want.\n\n**Available Models**\n- Llama3\n\nYou must write the model exactly as it is written here.\n\nWhen you are done, the edited line should look like this:\n\n```json\n\"model\": \"Llama3\",\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eDisable chatbot\u003c/summary\u003e\n\nGo to `config.json` and set the key `\"chatbot\"` to false.\n\nIt should look like this:\n\n```json\n\"chatbot\": false,\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eChange loading GIF\u003c/summary\u003e\n\nGo to `config.json` and set the key `\"loading_gif\"` to any GIF on Tenor you want!\n\nIt should look like this:\n\n```json\n\"loading_gif\": \"https://tenor.com/your/favorite/loading/gif\",\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eTurn off command syncing (makes bot load faster)\u003c/summary\u003e\n\nPlease note that this will break the bot if you haven't run it for the first time.\nGo to `config.json` and set the key `\"sync\"` to `false`.\n\nIt should look like this:\n\n```json\n\"sync\": false,\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eChange chatbot drawing model\u003c/summary\u003e\n\nGo to `config.json` and set the key `\"image_model\"` to a model that you find [here](https://aqualxx.github.io/stable-ui/).\n\nIt should look like this:\n\n```json\n\"image_model\": \"SDXL 1.0\"\n```\n\u003c/details\u003e\n\n\n## Generate images faster with Stable Horde\nStable Horde uses Kudos to rank users on a queue. The more Kudos you have, the higher you are on the generation queue.\nYou can get Kudos by rating images and/or generating images for Stable Horde\non your local hardware.\nTo get more Kudos, first stick your API key [here](https://tinybots.net/artbot/settings).\nThen, rate some images generated by other users [here](https://tinybots.net/artbot/rate).\nAfter rating a few images, you should have faster generation times!\n\n**IMPORTANT: When an image says, \"This rating must be x,\" you must rate it that.\nThis picture is used as a Captcha to avoid spam.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmak448a%2Fai-drawing-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmak448a%2Fai-drawing-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmak448a%2Fai-drawing-chatbot/lists"}