## Major Features Added - **Enhanced igdblib.py**: * Added search_games() method with fuzzy game search * Added get_game_details() for comprehensive game information * Added AI-friendly data formatting with _format_game_for_ai() * Added OpenAI function definitions via get_openai_functions() - **OpenAI Function Calling Integration**: * Modified OpenAIResponder to support function calling * Added IGDB function execution with _execute_igdb_function() * Backward compatible - gracefully falls back if IGDB unavailable * Auto-detects gaming queries and fetches real-time data - **Configuration & Setup**: * Added IGDB configuration options to config.toml * Updated system prompt to inform AI of gaming capabilities * Added comprehensive IGDB_SETUP.md documentation * Graceful initialization with proper error handling ## Technical Implementation - **Function Calling**: Uses OpenAI's tools/function calling API - **Smart Game Search**: Includes ratings, platforms, developers, genres - **Error Handling**: Robust fallbacks and logging - **Data Formatting**: Optimized for AI comprehension and user presentation - **Rate Limiting**: Respects IGDB API limits ## Usage Users can now ask natural gaming questions: - "Tell me about Elden Ring" - "What are good RPG games from 2023?" - "Is Cyberpunk 2077 on PlayStation?" The AI automatically detects gaming queries, calls IGDB API, and presents accurate, real-time game information seamlessly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
844 B
TOML
19 lines
844 B
TOML
openai-key = "OPENAIKEY"
|
|
discord-token = "DISCORDTOKEN"
|
|
model = "gpt-3.5-turbo"
|
|
max-tokens = 1024
|
|
temperature = 0.9
|
|
top-p = 1.0
|
|
presence-penalty = 1.0
|
|
frequency-penalty = 1.0
|
|
history-limit = 10
|
|
welcome-channel = "welcome"
|
|
staff-channel = "staff"
|
|
join-message = "Hi! I am {name}, and I am new here."
|
|
system = "You are a smart AI assistant with access to real-time video game information through IGDB. When users ask about games, game recommendations, release dates, platforms, or any gaming-related questions, you can search for accurate and up-to-date information. You can search for games by name and get detailed information including ratings, platforms, developers, genres, and summaries."
|
|
|
|
# IGDB Configuration for game information
|
|
igdb-client-id = "YOUR_IGDB_CLIENT_ID"
|
|
igdb-access-token = "YOUR_IGDB_ACCESS_TOKEN"
|
|
enable-game-info = true
|