Bratbot

B 81 completed
Other
containerized / python · tiny
48
Files
3,409
LOC
2
Frameworks
6
Languages

Pipeline State

completed
Run ID
#395934
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
31.44
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #47446
Member of a group with 1 similar repo(s) — canonical #113362 view group →
Top concepts (2)
Project DescriptionWeb Backend
Repobility · MCP-ready · https://repobility.com

AI Prompt

Create a self-hosted Discord bot called BratBot using Python. I need it to answer questions using a self-hosted LLM via Ollama. The bot should have a `/brat` slash command where users can specify an optional "brat level" (1-3). It also needs to support free-form conversation when mentioned. Key features to include are adjustable "brattiness" (5 levels), rate limiting using Redis, and a request queue for async responses. The architecture should use FastAPI for a custom personality API layer that communicates with Ollama, and the entire setup should be containerized using Docker Compose.
python discord.py ollama fastapi docker redis llm discord-bot containerization pytest
Generated by gemma4:latest

Catalog Information

◆ ✦ ◆ ✦ ◆ ✦ ◆ B R A T B O T ✦ ◆ ✦ ◆ ✦ ◆ ✦

Description

◆ ✦ ◆ ✦ ◆ ✦ ◆ B R A T B O T ✦ ◆ ✦ ◆ ✦ ◆ ✦

Novelty

3/10

Tags

python discord.py ollama fastapi docker redis llm discord-bot containerization pytest

Technologies

fastapi pydantic

Claude Models

claude-opus-4-6

Quality Score

B
80.7/100
Structure
73
Code Quality
100
Documentation
65
Testing
50
Practices
92
Security
100
Dependencies
60

Strengths

  • Code linting configured (ruff (possible))
  • Consistent naming conventions (snake_case)
  • Good security practices \u2014 no major issues detected
  • Containerized deployment (Docker)

Weaknesses

  • No LICENSE file \u2014 legal ambiguity for contributors
  • No CI/CD configuration \u2014 manual testing and deployment
  • 118 duplicate lines detected \u2014 consider DRY refactoring

Recommendations

  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a LICENSE file (MIT recommended for open source)

Security & Health

5.1h
Tech Debt (C)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (4)
Repobility · code-quality intelligence platform · https://repobility.com
Unknown
License
6.3%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

python
64.4%
markdown
19.2%
shell
11.4%
yaml
2.8%
toml
2.0%
text
0.2%

Frameworks

FastAPI pytest

Concepts (2)

Open methodology · Repobility · https://repobility.com/research/
CategoryNameDescriptionConfidence
Repobility · severity-and-effort ranking · https://repobility.com
auto_descriptionProject Description◆ ✦ ◆ ✦ ◆ ✦ ◆ B R A T B O T ✦ ◆ ✦ ◆ ✦ ◆ ✦80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/120291.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV