Skip to content

Run state-of-the-art language models locally. Chat with AI using simple slash commands. Zero cloud, zero cost – just pure, home-brewed AI magic.

License

Notifications You must be signed in to change notification settings

boshyxd/DiscordLLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordLLM 🤖💬

License: MIT Python 3.8+ Discord.py Ollama

DiscordLLM is a powerful Discord bot that brings the capabilities of large language models right to your server, running entirely on your local machine. No cloud services, no API costs – just pure, home-brewed local AI at your fingertips.

🌟 Features

  • Run state-of-the-art language models locally
  • Interact with AI using simple Discord slash commands
  • Zero cloud dependency, complete privacy
  • Customizable and expandable
  • Supports multiple LLM models (currently showcasing Qwen2 1.5B)

🚀 Quick Start

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/boshyxd/DiscordLLM.git
    cd DiscordLLM
    
  2. Install required dependencies:

    pip install -r requirements.txt
    
  3. Set up your Discord bot:

  4. Configure the bot:

    • Replace YOUR_BOT_TOKEN with your actual bot token
  5. Install and run Ollama:

    ollama run qwen2:1.5b
    
  6. Start the bot:

    python bot.py
    

💬 Usage

Once the bot is running and invited to your server, you can interact with it using slash commands:

  • /ask <your question>: Ask the AI a question

Example:

/ask What is the capital of France?

🧠 Supported Models

Currently, DiscordLLM is configured to use the Qwen2 1.5B model, but it can be easily adapted to use any model supported by Ollama. To use a different model:

  1. Download the model using Ollama:
    ollama pull model_name
    
  2. Update the default_model in config.json

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📜 License

Distributed under the MIT License. See LICENSE for more information.

📞 Contact

Angus Bailey - [email protected]

Project Link: https://github.com/boshyxd/DiscordLLM

🙏 Acknowledgements

About

Run state-of-the-art language models locally. Chat with AI using simple slash commands. Zero cloud, zero cost – just pure, home-brewed AI magic.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages