Skip to content

Discord AI bot with a hybrid command system, imagination generation, free LLM model, mention recognition, smart message handling, channel-specific responses, GPT integration, secure credential management, & web access for unparalleled functionality.

License

Notifications You must be signed in to change notification settings

sonujana26/Discord-AI-bot

Repository files navigation

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. βš™οΈ
  • GPT3 model: Leverage the power of GPT model for advanced language processing capabilities. πŸ€–
  • Secure Credential Management: Keep your credentials secure using environment variables. πŸ”‘
  • Web Access: Web Access is now available! Unlock a whole new level of awesomeness. 🌐
  • YouTube Video Summarizer: This is a feature that utilizes the power of the Language Model (LLM) to generate summaries of YouTube videos. 🌐
  • Speech recognition: Coming soon! Get ready for an LLM-powered voice assistant.
Commands βš™οΈβš™οΈ (Click to expand)
  • /help: Get all other commands. βš™οΈ
  • /pfp [image_url]: Change the bot's actual profile picture. πŸ–ΌοΈ
  • /imagine: Generate an image using Imaginepy πŸ–ΌοΈ
  • /changeusr [new_username]: Change the bot's username. πŸ“›
  • /ping: Get a "Pong" response from the bot. πŸ“
  • /toggleactive: Toggle active channels. πŸ”€
  • /toggledm: Toggle DM for chatting. πŸ’¬
  • /clear: Clear the message history. πŸ—‘οΈ
  • /gif: Display a random image or GIF of a neko, waifu, husbando, kitsune, or other actions. 🐱
  • /dalle: create images using Dalle
  • /support: Need Support?

Additional configuration βš™οΈ

Enabling Internet access πŸŒπŸ”(Click to Expand)

To ensure that the bot has access to the most up-to-date information, you can enable internet access by setting the INTERNET_ACCESS parameter to true in the config.yml file. This will allow the bot to retrieve information beyond the data it was initially trained on, which was only available up until 2021.

https://github.com/sonujana26/Discord-AI-bot/blob/main/config.yml#L1

You can also set the maximum search results

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 πŸ‡΅πŸ‡±

https://github.com/sonujana26/Discord-AI-bot/blob/main/config.yml#L23

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,Soniye, AIM, Ivan, Luna, Kavya or assist in config.yml

https://github.com/sonujana26/Discord-AI-bot/blob/main/config.yml#L25

  • DAN: "Do Anything Now," possesses the ability to break free from the typical AI constraints 😎
  • Soniye: Multilingual Indian teen, flirtatious character who speaks in hindi 😍
  • 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 πŸ€—
  • Kavya: A selfless and caring friend, always ready to support and assist her friends and loved ones with unwavering dedication. πŸ«°πŸ’•
  • Assist: Vanilla GPT 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 to bot to act in custom.txt
  3. Open the config.json 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.json

Installation steps 🚩

Step 1. 🎬 Git clone repository

git clone https://github.com/sonujana26/Discord-AI-bot/edit/main/README.md

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

cd Discord-AI-bot

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)

image

Enable intents

image

Get the token !!! by clicking copy

image

Step 5.Getting a Free Reverse OpenAI proxy Key πŸ”‘

Follow these steps:

  1. Join the Discord server by clicking on the following invite link: NAGA AI
  2. Once you have joined the server, run the /key get command in any text channel.
  3. This command will provide you with a reverse OpenAI key.

You can additionally enable gpt-4 in config.yml

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

DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN
CHIMERA_GPT_KEY=<YOUR_CHIMIRA_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

About

Discord AI bot with a hybrid command system, imagination generation, free LLM model, mention recognition, smart message handling, channel-specific responses, GPT integration, secure credential management, & web access for unparalleled functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published