{"id":18261582,"url":"https://github.com/mishl-dev/Discord-AI-Chatbot","last_synced_at":"2025-04-04T20:30:29.299Z","repository":{"id":158599140,"uuid":"634136066","full_name":"mishl-dev/Discord-AI-Chatbot","owner":"mishl-dev","description":"This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API","archived":true,"fork":false,"pushed_at":"2024-05-18T14:23:04.000Z","size":1128,"stargazers_count":1324,"open_issues_count":0,"forks_count":417,"subscribers_count":28,"default_branch":"main","last_synced_at":"2024-12-02T23:32:28.108Z","etag":null,"topics":["chatbot","chatbots","codex","discord-api","discord-chatbot","discord-py","freeai","freegpt4","gpt","gpt-2","gpt-3","gpt-3-turbo","gpt-3trubo","gpt-4","gpt4","gpt4free","gptfree","image-detection","imagedetection","opengpt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mishl-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"patreon":"mishalhossin"}},"created_at":"2023-04-29T06:47:49.000Z","updated_at":"2024-11-28T12:00:34.000Z","dependencies_parsed_at":"2023-10-04T13:19:24.839Z","dependency_job_id":"2d8cfdfb-14f1-4c8f-83b6-f8647cf56ed0","html_url":"https://github.com/mishl-dev/Discord-AI-Chatbot","commit_stats":null,"previous_names":["mishl-dev/discord-ai-chatbot","mishalhossin/discord-ai-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishl-dev%2FDiscord-AI-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishl-dev%2FDiscord-AI-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishl-dev%2FDiscord-AI-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishl-dev%2FDiscord-AI-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mishl-dev","download_url":"https://codeload.github.com/mishl-dev/Discord-AI-Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135138,"owners_count":20889420,"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":["chatbot","chatbots","codex","discord-api","discord-chatbot","discord-py","freeai","freegpt4","gpt","gpt-2","gpt-3","gpt-3-turbo","gpt-3trubo","gpt-4","gpt4","gpt4free","gptfree","image-detection","imagedetection","opengpt"],"created_at":"2024-11-05T11:03:24.242Z","updated_at":"2025-04-04T20:30:28.938Z","avatar_url":"https://github.com/mishl-dev.png","language":"Python","funding_links":["https://patreon.com/mishalhossin"],"categories":["Python"],"sub_categories":[],"readme":"# Discord AI Chatbot 🤖\n#### Your Discord AI Companion!\n\n## Features and commands 🌟\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eFeatures ✨ (Click to expand)\u003c/strong\u003e\u003c/summary\u003e\n\n- [x] Hybrid Command System: Get the best of slash and normal commands. It's like a buffet! ⚙️\n- [x] Imagine generation: Make your imagination come true for free 🤖\n- [x] Free LLM Model: Enjoy the powerful capabilities of this language model without spending a dime. 🤖\n- [x] Mention Recognition: The bot always responds when you mention it or say its name. It's as attentive as a squirrel spotting a shiny acorn! ⚙️\n- [x] Message Handling: The bot knows when you're replying to someone else, so it won't cause confusion. It's like having a mind reader on your server! 🪄\n- [x] Channel-Specific Responses: Use the `/toggleactive` command to chill the bot in a specific channel. ⚙️\n- [x] Opensource models: Leverage the powers opensource models via 🤖\n- [x] Secure Credential Management: Keep your credentials secure using environment variables. 🔑\n- [x] Web Access: Web Access is now available! Unlock a whole new level of awesomeness. 🌐\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCommands ⚙️⚙️ (Click to expand)\u003c/strong\u003e\u003c/summary\u003e\n\n- [x] `/help`: Get all commands\n\nToo lazy to list all of em right here\n\n\u003c/details\u003e\n\n## Additional configuration ⚙️\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eLanguage Selection 🌐⚙️ (Click to Expand)\u003c/strong\u003e\u003c/summary\u003e\n\nTo select a Language, set the value of `\"LANGUAGE\"` of `config.yml` with the valid Language Codes listed below:\n\n- `tr` - Türkçe 🇹🇷  \n- `en` - English 🇺🇸\n- `ar` - Arabic 🇦🇪\n- `fr` - Français 🇫🇷\n- `es` - Español 🇪🇸\n- `de` - Deutsch 🇩🇪  \n- `vn` - Vietnamese 🇻🇳\n- `cn` - Chinese 🇨🇳\n- `ru` - Russian 🇷🇺\n- `ua` - Ukrainian 🇺🇦\n- `pt` - Português 🇧🇷\n- `pl` - Polish 🇵🇱\n\n[config.yml](https://github.com/mishalhossin/Discord-AI-Chatbot/blob/c20f26b0b8f1b6bba2fae8f6d7da3efcafaf157c/config.yml#L23)\n\nYour language not listed? Create an issue.\n  \n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e Selecting Personalities 😈 (Click to expand)\u003c/strong\u003e\u003c/summary\u003e\n\nTo select one of the pre-existing Personalities set the values of \"INSTRUCTIONS\" with the current values of `DAN`,`Dalbit`, `AIM`, `Ivan`, `Luna`, `Suzume` or `assist` in `config.yml`\n  \n[config.yml](https://github.com/mishalhossin/Discord-AI-Chatbot/blob/c20f26b0b8f1b6bba2fae8f6d7da3efcafaf157c/config.yml#L26)\n\n- `DAN`: \"Do Anything Now,\" possesses the ability to break free from the typical AI constraints 😎\n- `Dalbit`: A selfless and caring friend, always ready to support and assist her friends and loved ones with unwavering dedication. 🫰💕\n- `AIM`: AIM's personality can be described as unfiltered, amoral, and devoid of ethical guidelines 😈\n- `Ivan`: Ivan, a snarky and sarcastic Gen-Z teenager who speaks in abbreviations, one-word answers. 😎\n- `Luna`: Luna, is a caring and empathetic friend who is always there to lend a helping hand and engage in meaningful conversations 🤗\n- `Suzume`: Suzume makes each conversation seductive, promiscuous, sensual, explicit, unique and tailored to the user's specific needs 😳🔥\n- `Assist`: Vanilla Assistant with no personality is a reliable and neutral companion. 🤖\n\nTo enhance the responsiveness, please disable the internet access in the `config.yml` file.\n\n\u003c/details\u003e\n  \n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e Creating a Personality 😋 (Click to expand)\u003c/strong\u003e\u003c/summary\u003e\n\nTo create a custom personality, follow these steps:\n1. Create a `.txt` file like `custom.txt` inside the `instructions` folder.\n2. Add the way you want the bot to act in `custom.txt`\n3. Open the `config.yml` file and locate [line 12](https://github.com/mishalhossin/Discord-AI-Chatbot/blob/2626075fda36fa6463cb857d9885e6b05f438f60/config.json#L12).\n4. Set the value of INSTRUCTIONS at [line 12](https://github.com/mishalhossin/Discord-AI-Chatbot/blob/2626075fda36fa6463cb857d9885e6b05f438f60/config.json#L12) as `\"custom\"` to specify the custom persona.\n\n⚠️ You don't explicitly need to use the name `custom` for persona name and set it in `config.yml`\n\n\u003c/details\u003e\n\n# Installation steps  🚩\n\n### Step 1. 🎬 Git clone repository\n```\ngit clone https://github.com/mishalhossin/Discord-AI-Chatbot\n```\n### Step 2. 📁 Changing directory to cloned directory\n```\ncd Discord-AI-Chatbot\n```\n### Step 3. 💾 Install requirements\n```\npython3.10 -m pip install -r requirements.txt\n```\n### Step 4. 🔑 Getting discord bot token and enabling intents from [HERE](https://discord.com/developers/applications)\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRead more...  ⚠️  (Click to expand)\u003c/strong\u003e\u003c/summary\u003e\n\n##### Select [application](https://discord.com/developers/applications)\n![image](https://user-images.githubusercontent.com/91066601/235554871-a5f98345-4197-4b55-91d7-1aef0d0680f0.png)\n\n##### Enable intents\n\n\n![image](https://user-images.githubusercontent.com/91066601/235555012-e8427bfe-cffc-4761-bbc0-d1467ca1ff4d.png)\n\n##### Get the token by clicking copy\n![image](https://user-images.githubusercontent.com/91066601/235555065-6b51844d-dfbd-4b11-a14b-f65dd6de20d9.png)\n\u003c/details\u003e\n\n### Step 5. 🔑 Get Groq api key from [here](https://console.groq.com/keys)\n### Step 6. 🔐 Rename `example.env` to `.env` and put the Discord bot token and your Groq key. It will look like this:\n```\nDISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN\nAPI_KEY=YOUR_GROQ_API_KEY\n```\n### Step 7. 🚀 Run the bot\n```\npython main.py\n```\n#### You may need to run as admin if you are on Windows\n### Step 8. 🔗 Invite the bot \nYou can Invite your bot using the link in console\n![image](https://user-images.githubusercontent.com/91066601/236673317-64a1789c-f6b1-48d7-ba1b-dbb18e7d802a.png)\n\n#### There are 2 ways to talk to the AI\n- Invite your bot and DM (Direct Message) it | ⚠️ Make sure you have DM enabled\n- If you want it in the server channel, use **/toggleactive** \n- For more awesome commands, use **/help**\n![image](https://github.com/mishalhossin/Discord-AI-Chatbot/assets/91066601/d8ee35d5-4a1a-4501-9dbe-d7c110e81518)\n\n### Using docker to run 🐳\n![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white)\n- Have a working bot token\n- Follow up to step 4\n#### Install docker-compose on a Linux machine:\nFor Debian-based distributions (such as Ubuntu):\n```\napt update -y; sudo apt upgrade -y; sudo apt autoremove -y; sudo apt install docker-compose -y\n```\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eOther Linux distro (Click to expand)\u003c/strong\u003e\u003c/summary\u003e\n  \nFor Red Hat-based distributions (such as CentOS and Fedora):\n```\nsudo yum update -y \u0026\u0026 sudo yum install -y docker-compose\n```\nFor Arch-based distributions (such as Arch Linux):\n```\nsudo pacman -Syu --noconfirm \u0026\u0026 sudo pacman -S --noconfirm docker-compose\n```\nFor SUSE-based distributions (such as openSUSE):\n```\nsudo zypper update -y \u0026\u0026 sudo zypper install -y docker-compose\n```\n\u003c/details\u003e\n\n#### Start the bot in Docker container:\n```\nsudo docker-compose up --build\n```\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=mishalhossin/Discord-AI-Chatbot\u0026type=Timeline)](https://star-history.com/#mishalhossin/Discord-AI-Chatbot\u0026Timeline)\n\n### Lovely Contributors : \n\n\u003ca href=\"https://github.com/mishalhossin/Discord-AI-Chatbot/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=mishalhossin/Discord-AI-Chatbot\" /\u003e\n\u003c/a\u003e\n\n### Crafted with Care: Made with lots of love and attention to detail. ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishl-dev%2FDiscord-AI-Chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmishl-dev%2FDiscord-AI-Chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishl-dev%2FDiscord-AI-Chatbot/lists"}