Skip to content

A Discord Bot that uses OpenAI's API for some fun in a Discord server.

Notifications You must be signed in to change notification settings

zfleeman/openai-discord-bot

Repository files navigation

An OpenAI Discord Bot

No more, no less.

This repository contains the code and configurations for a Discord Bot created with the discord.py package and the official OpenAI Python API library.

Commands

The Bot's commands are documented in the docs folder. app.py contains the bot-decorated functions.

Run-it-Yourself!

While I currently do not have a desire to distribute this Bot to the public, you can run this yourself if you have a Discord Developer account and an OpenAI API key.

Steps to Run

  1. Create a Bot: Create a Discord Bot with the following permissions:

  2. Set Environment Variables:

    OPENAI_API_KEY=your_openai_api_key
    DISCORD_BOT_TOKEN=your_discord_bot_token
  3. Run in Docker: Use the provided Dockerfile to build and run the Bot in a Docker container if that's your thing (it should be).