Skip to content

Feat: BOT Engagemeent#29

Merged
MindfulLearner merged 7 commits intomainfrom
feat/talking-bot
Nov 2, 2025
Merged

Feat: BOT Engagemeent#29
MindfulLearner merged 7 commits intomainfrom
feat/talking-bot

Conversation

@MindfulLearner
Copy link
Member

@MindfulLearner MindfulLearner commented Sep 16, 2025

Bot AI per Notizie Tech Automatiche

implementato un bot che condivide automaticamente notizie di attualità informatica con commenti generati dall'AI per animare la community.

Idea disegno

image

Cosa fa

Il bot cerca notizie tech in italiano e le condivide nel canale con un commento naturale generato da Mistral AI. L'idea è avere contenuti freschi senza sembrare troppo artificiale.

Funzionalità principali:

  • Invio automatico ogni 5 ore nel canale configurato
  • Filtra solo notizie rilevanti (cybersecurity, AI, startup, etc.)
  • Esclude guide e tutorial per concentrarsi su attualità
  • Commenti in italiano colloquiale come una persona normale

Per sviluppatori:

  • Comando /ai-news-v2 per testare manualmente
  • Si può rimuovere dopo i test di produzione

Implementazione tecnica

File modificati:

  • commands/ai/ai-vanilla-commands.js - Il comando slash per test
  • commands/ai/comportamento.md - Prompt per l'AI, definisce come deve parlare
  • events/ai/ai-vanilla.js - Event handler Discord che gestisce l'automazione

Dipendenze:

  • News API per recuperare le notizie
  • Mistral AI per generare i commenti
  • Fetch per scraping del contenuto completo degli articoli

Configurazione necessaria:

NEWS_API_KEY=la_tua_chiave_news_api
MISTRAL_TOKEN=il_tuo_token_mistral

Demo

image image image

Note tecniche

L'event handler Discord si attiva quando il bot va online e imposta un timer per l'invio automatico. Ho fatto in modo che i commenti sembrino scritti da una persona vera che commenta notizie, non da un bot troppo formale.

Il sistema è robusto con gestione errori e fallback in caso di problemi con le API esterne. heuheuehe

@MindfulLearner MindfulLearner linked an issue Sep 19, 2025 that may be closed by this pull request
Comment on lines +107 to +109

Genera SOLO un commento diretto e conciso (1-2 righe massimo) come se FOSSI COINVOLTO personalmente. Usa "io", "mi", "a me" per essere personale. NON FARE DOMANDE. Racconta come ti impatta. USA GRAMMATICA ITALIANA CORRETTA SEMPRE.`;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems not to be working ( ? )

@MindfulLearner MindfulLearner merged commit 6ab95f5 into main Nov 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Think about features

2 participants