Back to rankings

mishl-dev/Discord-AI-Chatbot

Python

This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API

gptgpt4freechatbotchatbotscodexdiscord-apidiscord-pygpt-2gpt-3gpt4gpt-3-turbogpt-3trubo
Star Growth
Stars
1.4k
Forks
426
Weekly Growth
โ€”
Issues
0
5001k
Oct 25Jan 26Apr 26Jul 26
ArtifactsPyPIpip install discord-ai-chatbot
README

Discord AI Chatbot ๐Ÿค–

Your Discord AI Companion!

Features and commands ๐ŸŒŸ

Features โœจ (Click to expand)
  • Hybrid Command System: Get the best of slash and normal commands. It's like a buffet! โš™๏ธ
  • Imagine generation: Make your imagination come true for free ๐Ÿค–
  • Free LLM Model: Enjoy the powerful capabilities of this language model without spending a dime. ๐Ÿค–
  • 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! โš™๏ธ
  • 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! ๐Ÿช„
  • Channel-Specific Responses: Use the /toggleactive command to chill the bot in a specific channel. โš™๏ธ
  • Opensource models: Leverage the powers opensource models via ๐Ÿค–
  • Secure Credential Management: Keep your credentials secure using environment variables. ๐Ÿ”‘
  • Web Access: Web Access is now available! Unlock a whole new level of awesomeness. ๐ŸŒ
Commands โš™๏ธโš™๏ธ (Click to expand)
  • /help: Get all commands

Too lazy to list all of em right here

Additional configuration โš™๏ธ

Language Selection ๐ŸŒโš™๏ธ (Click to Expand)

To select a Language, set the value of "LANGUAGE" of config.yml with the valid Language Codes listed below:

  • tr - Tรผrkรงe ๐Ÿ‡น๐Ÿ‡ท
  • en - English ๐Ÿ‡บ๐Ÿ‡ธ
  • ar - Arabic ๐Ÿ‡ฆ๐Ÿ‡ช
  • fr - Franรงais ๐Ÿ‡ซ๐Ÿ‡ท
  • es - Espaรฑol ๐Ÿ‡ช๐Ÿ‡ธ
  • de - Deutsch ๐Ÿ‡ฉ๐Ÿ‡ช
  • vn - Vietnamese ๐Ÿ‡ป๐Ÿ‡ณ
  • cn - Chinese ๐Ÿ‡จ๐Ÿ‡ณ
  • ru - Russian ๐Ÿ‡ท๐Ÿ‡บ
  • ua - Ukrainian ๐Ÿ‡บ๐Ÿ‡ฆ
  • pt - Portuguรชs ๐Ÿ‡ง๐Ÿ‡ท
  • pl - Polish ๐Ÿ‡ต๐Ÿ‡ฑ

config.yml

Your language not listed? Create an issue.

Selecting Personalities ๐Ÿ˜ˆ (Click to expand)

To 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

config.yml

  • DAN: "Do Anything Now," possesses the ability to break free from the typical AI constraints ๐Ÿ˜Ž
  • Dalbit: A selfless and caring friend, always ready to support and assist her friends and loved ones with unwavering dedication. ๐Ÿซฐ๐Ÿ’•
  • AIM: AIM's personality can be described as unfiltered, amoral, and devoid of ethical guidelines ๐Ÿ˜ˆ
  • Ivan: Ivan, a snarky and sarcastic Gen-Z teenager who speaks in abbreviations, one-word answers. ๐Ÿ˜Ž
  • Luna: Luna, is a caring and empathetic friend who is always there to lend a helping hand and engage in meaningful conversations ๐Ÿค—
  • Suzume: Suzume makes each conversation seductive, promiscuous, sensual, explicit, unique and tailored to the user's specific needs ๐Ÿ˜ณ๐Ÿ”ฅ
  • Assist: Vanilla Assistant with no personality is a reliable and neutral companion. ๐Ÿค–

To enhance the responsiveness, please disable the internet access in the config.yml file.

Creating a Personality ๐Ÿ˜‹ (Click to expand)

To create a custom personality, follow these steps:

  1. Create a .txt file like custom.txt inside the instructions folder.
  2. Add the way you want the bot to act in custom.txt
  3. Open the config.yml file and locate line 12.
  4. Set the value of INSTRUCTIONS at line 12 as "custom" to specify the custom persona.

โš ๏ธ You don't explicitly need to use the name custom for persona name and set it in config.yml

Installation steps ๐Ÿšฉ

Step 1. ๐ŸŽฌ Git clone repository

git clone https://github.com/mishalhossin/Discord-AI-Chatbot

Step 2. ๐Ÿ“ Changing directory to cloned directory

cd Discord-AI-Chatbot

Step 3. ๐Ÿ’พ Install requirements

python3.10 -m pip install -r requirements.txt

Step 4. ๐Ÿ”‘ Getting discord bot token and enabling intents from HERE

Read more... โš ๏ธ (Click to expand)
Select application

image

Enable intents

image

Get the token by clicking copy

image

Step 5. ๐Ÿ”‘ Get Groq api key from here

Step 6. ๐Ÿ” Rename example.env to .env and put the Discord bot token and your Groq key. It will look like this:

DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN
API_KEY=YOUR_GROQ_API_KEY

Step 7. ๐Ÿš€ Run the bot

python main.py

You may need to run as admin if you are on Windows

Step 8. ๐Ÿ”— Invite the bot

You can Invite your bot using the link in console image

There are 2 ways to talk to the AI

  • Invite your bot and DM (Direct Message) it | โš ๏ธ Make sure you have DM enabled
  • If you want it in the server channel, use /toggleactive
  • For more awesome commands, use /help image

Using docker to run ๐Ÿณ

Docker

  • Have a working bot token
  • Follow up to step 4

Install docker-compose on a Linux machine:

For Debian-based distributions (such as Ubuntu):

apt update -y; sudo apt upgrade -y; sudo apt autoremove -y; sudo apt install docker-compose -y
Other Linux distro (Click to expand)

For Red Hat-based distributions (such as CentOS and Fedora):

sudo yum update -y && sudo yum install -y docker-compose

For Arch-based distributions (such as Arch Linux):

sudo pacman -Syu --noconfirm && sudo pacman -S --noconfirm docker-compose

For SUSE-based distributions (such as openSUSE):

sudo zypper update -y && sudo zypper install -y docker-compose

Start the bot in Docker container:

sudo docker-compose up --build

Star History

Star History Chart

Lovely Contributors :

Crafted with Care: Made with lots of love and attention to detail. โค๏ธ

Related repositories
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

PythonPyPIOtheraiopenai
agpt.co
185.6k46.1k
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source โ€” self-host for your organization with complete privacy.

HTMLOtherchatgptai
prompts.chat
166.2k21.5k
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

TypeScriptnpmOtheraigpt
dify.ai
149.7k23.6k
microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

Jupyter NotebookMIT Licenseaichatgpt
113.3k60.8k
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Jupyter NotebookOthergptlarge-language-models
amzn.to/4fqvn0D
99.5k15.3k
vllm-project/vllm

A high-throughput and memory-efficient inference and serving engine for LLMs

PythonPyPIApache License 2.0gptllm
vllm.ai
86.8k19.7k
OpenHands/OpenHands

๐Ÿ™Œ OpenHands: AI-Driven Development

PythonPyPIOtheragentartificial-intelligence
openhands.dev
81.6k10.4k
lobehub/lobehub

๐Ÿคฏ LobeHub is your Chief Agent Operator, organizing your agents into 7ร—24 operations by hiring, scheduling, and reporting on your entire AI team.

TypeScriptnpmOtherchatgptopenai
lobehub.com
80.6k15.7k
hiyouga/LlamaFactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

PythonPyPIApache License 2.0fine-tuningllama
llamafactory.readthedocs.io
73.4k9k
FoundationAgents/MetaGPT

๐ŸŒŸ The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

PythonPyPIMIT Licenseagentgpt
atoms.dev
69.5k8.9k
xtekky/gpt4free

The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt 5.3 kimi 2.5 deepseek v3.2 gemini 3

PythonPyPIGNU General Public License v3.0chatgptchatgpt-4
t.me/g4f_channel
66.5k13.5k
PlexPt/awesome-chatgpt-prompts-zh

ChatGPT ไธญๆ–‡่ฐƒๆ•™ๆŒ‡ๅ—ใ€‚ๅ„็งๅœบๆ™ฏไฝฟ็”จๆŒ‡ๅ—ใ€‚ๅญฆไน ๆ€Žไนˆ่ฎฉๅฎƒๅฌไฝ ็š„่ฏใ€‚

MIT Licensechatgptchat-gpt
chat.aimakex.com
61.1k13.5k