Back to Home
ericomack1983 icon

MCPDiscordChatBot

by ericomack1983

Overview

A Discord chatbot that directly integrates with and queries ChatGPT to answer user questions, styled as Agent Smith.

Installation

Run Command
python discord_aibot.py

Environment Variables

  • OPENAI_API_KEY
  • DISCORD_TOKEN

Security Notes

CRITICAL: The `openai.Client` initialization explicitly uses `api_key="XXXXXXXX"` instead of `os.getenv('OPENAI_API_KEY')`. While `os.getenv` is commented out, the active line hardcodes a placeholder that could easily become a hardcoded secret if replaced without proper environment variable usage. This is a severe security vulnerability. The Discord token is correctly loaded from environment variables.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-12-01

Tags

AI AgentDiscord BotChatGPT IntegrationPython