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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

app.py contains the bot-decorated functions.

  • /join: Join the voice channel that the user is currently in.
  • /leave: Leave the voice channel that the bot is currently in.
  • /clean: Delete messages sent by the bot within a specified timeframe.
  • /talk: Start a loop where the bot talks about a specified topic at regular intervals.
  • /rather: Play a "Would You Rather" game with a specified topic.
  • /say: Make the bot say a specified text.
  • /image: Generate an image using a prompt and a specified model.
  • /vision: Describe or interpret an image using a prompt.