# openai/gpt-discord-bot

Example Discord bot written in Python that uses the completions API to have conversations with the `text-davinci-003` model, and the moderations API to filter the messages.

Repository: https://github.com/openai/gpt-discord-bot
Canonical: https://ross.abutalabs.com/products/gpt-discord-bot
Language: Python
License: MIT
License Family: permissive
Last push: 2024-06-07T10:53:58+00:00

## Health v2 (maintenance only)
Score: 31/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 96
- inputs: {"age_days": 1351, "days_push": 817, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1825, forks 636 (observed 2026-08-28T04:05:41.253176+00:00)

## What it is
An example Discord bot written in Python that uses the OpenAI chat completions API to hold conversations with the gpt-3.5-turbo model and the moderations API to filter messages. It is a template/reference implementation maintained for bug fixes only, not accepting new features.

## Use cases
- add a gpt chatbot to my discord server
- discord bot that talks with openai api
- example code for building a discord bot with chatgpt
- moderate discord messages with openai moderation api
- run a chat thread bot on discord with configurable instructions

## When to choose
- you want a working reference for wiring discord.py to the OpenAI chat API
- you need thread-based conversations with message history passed to the model
- you want built-in moderation filtering of user messages

## When to avoid
- you need new features or active development - the repo only accepts bug fixes
- you want a production-ready, highly customizable chatbot framework
- you use models or APIs beyond what the template supports

## Facets
- artifact type: application
- maturity: maintenance
- function: chatbot, llm-inference, agent-framework
- domain: chatbots, large-language-models, artificial-intelligence, messaging-platforms
- platform: python, self-hosted
- tags: discord-bot, openai-api, gpt-3.5-turbo, moderation, example-code, thread-based-chat, discord

## Member repositories
- openai/gpt-discord-bot (main) score 31

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.253176+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:42.003342+00:00, confidence not recorded.
  - readme: https://github.com/openai/gpt-discord-bot (fetched 2026-08-28T04:05:41.253176+00:00, sha 624a5d631eba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
