Skip to content

vihaanvp/EchoAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EchoAI - Your Friendly AI Discord Bot

EchoAI is a versatile and intelligent Discord bot that brings the power of large language models and AI image generation directly to your server. It's designed to be a conversational partner, a creative tool, and a helpful assistant.

Powered by Llama 3 for chat and Stable Diffusion XL for image generation via the Hugging Face API.

Features

  • Conversational AI: Chat with EchoAI in DMs or mention it in a server channel for natural, helpful responses.
  • Dedicated Chat Channel: Admins can set a specific channel where the bot will actively participate in conversations without needing to be mentioned.
  • High-Quality Image Generation: Create stunning images from text prompts using the /generate_image command.
  • Privacy-Focused: The bot does not store your conversations. Server-specific settings are stored locally and are minimal.
  • Easy to Use: Simple commands and intuitive interaction.

1. Add EchoAI to Your Server

You can add the official EchoAI bot to your Discord server using the link below.

Click here to invite EchoAI to your server!


2. Setting Up Your Own Bot from Source

If you prefer to run your own instance of EchoAI, you can follow these steps to set it up.

Prerequisites

  • Python 3.8 or newer
  • A Discord account and a server where you have administrative permissions.
  • A Hugging Face account.

Step-by-Step Guide

1. Get the Code Clone this repository or download the source code files (main.py, .env.example, requirements.txt).

2. Create a Discord Bot Application

  • Go to the Discord Developer Portal.
  • Click "New Application" and give it a name (e.g., "My EchoAI").
  • Go to the "Bot" tab and click "Add Bot".
  • Under the bot's username, click "Reset Token" to get your Bot Token. Save this token securely!
  • Enable the Message Content Intent under "Privileged Gateway Intents". This is required for the bot to read messages.

3. Get Your Hugging Face API Token

  • Log in to your Hugging Face account.
  • Go to your profile, then click Settings -> Access Tokens.
  • Create a new token with the "read" role. Copy this token and keep it safe.

4. Set Up Your Project Environment

  • Create a requirements.txt file with the content from the section above, or use the one provided.
  • Install the necessary Python libraries:
    pip install -r requirements.txt

5. Configure Your Environment Variables

  • Create a file named .env in the same directory as main.py.
  • Add your secret tokens to this file like so:
    DISCORD_TOKEN=YourDiscordBotTokenGoesHere
    HUGGINGFACE_TOKEN=YourHuggingFaceApiTokenGoesHere
    

6. Run the Bot

  • Once everything is configured, start the bot with:
    python main.py
  • Your bot should now be online and ready!

Commands

EchoAI uses Discord's built-in slash commands.

  • /generate_image [prompt] - Generates an image based on the text prompt you provide.
  • /set_chat_channel - (Admin Only) Designates the current channel as the bot's primary chat channel. The bot will respond to all messages here without needing a @mention.

Legal

For more information on data handling and user responsibilities, please review our legal documents.


Disclaimer

The content generated by EchoAI is created by artificial intelligence. It may not always be accurate, appropriate, or reflect the views of the bot's developer. Please use your discretion.

Contact

This bot is maintained by vihaanvp. Feel free to reach out with any questions or feedback.

About

An AI chatbot for Discord with Image Generation

Resources

License

Stars

Watchers

Forks

Contributors

Languages