/discordia

A Discord user-like Ai that can talk on channels, see images and browse the internet to do fact checks.

Primary LanguagePythonApache License 2.0Apache-2.0

DISCORDIA

A Discord user-like Ai that can talk on channels, see images, store context on memory and browse the internet to do fact checks.

Note: All the services used in this project are free. All the keys you need have massive free resources.

 _________   ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
(  _____  )  ⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⡀⢉⣉⠉⠉⠋⠐⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠰⠒⠒⠂⠀⠄⠀⠀⠀⠀⠀⠀⠀
 \ \___/ /   ⠀⠀⠀⠀⠀⣠⣾⣿⣿⡿⠿⠿⣶⣶⣥⣴⠢⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⡀⢤⣤⣤⣶⣶⣶⣖⠃⠀⠀⠀⠀⠀
  (_____)    ⠀⠀⠠⢴⣾⣿⡿⠋⠀⠀⠀⣴⣾⣿⣿⣿⣗⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣥⣾⣿⣟⠉⠉⠙⠻⣿⣿⣦⣀⠀⠀⠀
 _______ _   ⠀⠀⣠⣾⣿⠋⠀⠀⠀⠀⠠⣿⣜⢶⡗⣹⡯⠣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⣟⢭⣛⢹⣧⠀⠀⠀⠀⠻⣿⣧⡀⠀⠀
(_______(_)  ⠲⠿⠿⠿⣿⡀⠀⠀⠀⠀⠀⠻⠿⣷⡼⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣯⣫⣼⡏⠀⠀⠀⠀⠀⣹⣿⠿⠷⠦
 _   _____   ⠀⠀⠀⠀⠈⠉⠒⠀⠀⡀⢀⣠⠶⠖⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠭⢭⢥⣄⠀⠀⠀⠀⠊⠁⠀⠀⠀⠀
( ) (  _  )  ================================================================
| |_| | | |                      DISCORDIA Booting Up...
(_____) (_)  ================================================================
 _________   -> A Discord Selfbot Developed by Babycommando
(  _____  )  -> Capabilities:
| |     | |      - Interact with users using LLMs
(_)     (_)      - See and analyze images
 _________       - Search the web for information
(  _____  )  ================================================================
| |_____| |
(_________)  [INFO] Loading modules...
 _________   [INFO] Setting up AI interaction...
(___   _  )  [INFO] Integrating image recognition...
 _/   |_| |  [INFO] Connecting to web search API...
(__/(_____)  [INFO] Connecting to Discord...
 _________
(  _____  )  ================================================================
 \ \___/ /                 DISCORDIA is now online and ready!
  (_____)    ================================================================
 _______ _   ⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⡀⢉⣉⠉⠉⠋⠐⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠰⠒⠒⠂⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀
(_______(_)  ⠀⠀⠀⠀⣠⣾⣿⣿⡿⠿⠿⣶⣶⣥⣴⠢⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⡀⢤⣤⣤⣶⣶⣶⣖⠃⠀⠀⠀⠀⠀
 _________  ⠀⠀⠀⠠⢴⣾⣿⡿⠋⠀⠀⠀⣴⣾⣿⣿⣿⣗⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣥⣾⣿⣟⠉⠉⠙⠻⣿⣿⣦⣀⠀⠀⠀
(____  _  )  ⠀⠀⣠⣾⣿⠋⠀⠀⠀⠀⠠⣿⣜⢶⡗⣹⡯⠣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⣟⢭⣛⢹⣧⠀⠀⠀⠀⠻⣿⣧⡀⠀⠀
 ___| |_| |  ⠲⠿⠿⠿⣿⡀⠀⠀⠀⠀⠀⠻⠿⣷⡼⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣯⣫⣼⡏⠀⠀⠀⠀⠀⣹⣿⠿⠷⠦
(_________)      ⠀⠈⠉⠒⠀⠀⡀⢀⣠⠶⠖⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠭⢭⢥⣄⠀⠀⠀⠀⠊⠁⠀⠀⠀⠀

Welcome to DISCORDIA, user!

DISCORDIA is a discord bot that can read and write text messages, store them on a contextual memory, use multimodal vision models to answer with messages that holds image attachments and do function calling to search the internet to fact-check things. It have the potential to also do other kinds of function calling - explore the example of the web search and be creative about it.

Warning: Before proceeding, note that this is a discord SELFBOT, a method that fetches directly the discord APIs without using the discord official libs. This is against the discord TOS, and could get you banned. Make sure to use this on a spare discord account, and keep an eye on the time sleeps you use to call these apis.

For this bot to work you will need to change its configurations:

  • Get your discord access token in the site by:

    1. On inspect element, go to the network tab;
    2. Click on the "messages" request;
    3. Grab the authorization token;
  • Define your keys for the services in use:

    1. Groq for ultra fast LLM text generation (Llama3 70B); (See https://groq.com)
    2. Google Gemini for multimodal image processing; (See https://ai.google.dev/gemini-api)
    3. Jina for powering the LLM with a search engine (See https://jina.ai)
  • Define the personality of your bot by changing the "(...)" parts (or everything else) to your own bot specs for your system prompts;

Have fun ::)