ChatGPT Feature

ChatGPT Integration

Overview

The bot integrates OpenAI’s GPT-4 and DALL·E 3 to provide AI-powered interactions, conversations, and image generation.

Features

💬 Conversation Threads

Create persistent chat threads with memory:

Thread Features

🎯 Quick Commands

One-off AI interactions without creating threads:

Feel-Good Messages (!feelgood)

Jokes (!joke)

Compliments (!compliment)

Advice (!advice)

Inspiration (!inspo)

Quick Questions (!q)

🎨 Image Generation

Create images using DALL·E 3:

Examples:

!image a serene Japanese garden with cherry blossoms
!image cyberpunk city at night with neon lights
!image cute cartoon dragon reading a book

Configuration

Token Limits

Control response length per command:

"max_tokens": {
	"feelgood": 50,
	"joke": 75,
	"compliment": 50,
	"advice": 100,
	"inspo": 50,
	"query": 150
}

Custom Prompts

Customize AI behavior:

"prompts": {
	"joke": {
		"generic": "Tell a family-friendly joke.",
		"targeted": "Tell a family-friendly joke about {topic}."
	}
}

Thread Retention

Set how long threads are kept:

Best Practices

For Users

  1. Be specific in your requests
  2. Use threads for longer conversations
  3. End threads when done to save resources
  4. Report issues with inappropriate responses

For Admins

  1. Monitor usage with token display
  2. Set appropriate limits for your community
  3. Customize prompts to match server culture
  4. Review threads periodically
  5. Set retention based on activity level

Token Usage

When enabled, shows OpenAI API usage:

Enable with: !toggletokenusage

Limitations

Troubleshooting

Common Issues

“Sorry, I couldn’t generate a response”

Thread not responding

Image generation fails


Generated from repository docs. Last build: 2025-09-12 11:03 UTC