Skip to content

mateo-membreno/Discord-Bot

Repository files navigation

Discord Bot

Click to add Teo's Bot to server

Summary of .py files:

  • main.py - Runs the Discord bot.

  • bot.py - Contains a Discord bot that listens for messages, checks if they start with "!", calls response handling functions, and sends back the bot's response.

  • responses.py - Contains response handling functions like calling AI functions from ai_response.py. Handles routing messages to the correct response function based on the command.

  • ai_response.py - Contains functions to call the OpenAI APIs for GPT-3 text generation and DALL-E image generation.

Commands

To access bot begin messages with !

Cmmands:

  • gpt --> accesses ChatGPT through API call and send text response in channel
    • ex. !gpt what is the population of Orlando, Florida
  • image --> accesses OpenAI's DALL·E through API call and send image in channel
    • ex. !image Anakin Skywalker from Star Wars
  • future --> sends picture of Future (the bot's profile picture)
    • ex. !future

About

Discord Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors