Categorygithub.com/DeviousLabs/discord-gopilot
module
0.0.0-20241103014054-df6ec22a5916
Repository: https://github.com/deviouslabs/discord-gopilot.git
Documentation: pkg.go.dev

# README

Discord Gopilot

Gopilot is a Discord bot written in Go that integrates AI models via the Cloudflare AI API. It allows users to generate code snippets, solve algorithmic problems, and assist with project tasks directly within their Discord channels, making AI tools easily accessible to developers and project teams.

Docker Build Example

docker build -t gopilot:latest-amd64

Docker Run Example

docker run -e CLOUDFLARE_ACCOUNT_ID='ACCOUNT_ID' CLOUDFLARE_API_TOKEN='TOKEN' DISCORD_TOKEN='TOKEN' MODEL='MODEL_ID' PERSONA='PERSONA' gopilot:latest-amd64

Dock-Compose.yml Example

version: '3.7'
  services:
    gopilot:
      image: "gopilot:latest-amd64"
      container_name: "gopilot"
      environment:
        CLOUDFLARE_ACCOUNT_ID: "ACCOUNT_ID"
        CLOUDFLARE_API_TOKEN: "TOKEN"
        DISCORD_TOKEN: "TOKEN"
        MODEL: "MODEL_ID"
        PERSONA: "PERSONA"
      restart: "unless-stopped"

Models Available

IDModel NameAvailable
1llama-3.1-70b-instruct
2deepseek-coder-6.7b-instruct-awq
3gemma-7b-it
4mistral-7b-instruct-v0.2
5qwen1.5-14b-chat-awq
6phi-2
7stable-diffusion-xl-base-1.0

Persona's Available

  • default
  • developer

Contributing

Contributions are welcome! Please follow these security best practices:

Pull Requests: Submit changes through pull requests for code review.

Security Testing: Run all tests, including static analysis and dependency checks.

Secrets Management: Do not hardcode any sensitive information; use environment variables.

License

This project is open source under the MIT License.

# Packages

No description provided by the author
No description provided by the author