Giter Club home page Giter Club logo

aidiscordbot's Introduction

Discord Bot with OpenAI Integration

Overview

This Discord bot is designed to integrate with OpenAI's GPT-3 API to provide automated responses to user queries. It's built using Python and the discord.py library and comes containerized with Docker for easy deployment.

Features

  • Automated ticket creation and management via Discord commands.
  • Integration with OpenAI's GPT-3 for intelligent responses.
  • SQLite database for persistent storage of tickets and a knowledge base.
  • Dockerized for consistent environment and easy deployment.

Prerequisites

  • Python 3.8 or higher
  • Docker
  • Discord Bot Token
  • OpenAI API Key

Getting Started

Clone the Repository

git clone https://github.com/ssmanji89/aidiscordbot
cd aidiscordbot

Local Setup

  1. Install the required Python packages:
    pip install -r requirements.txt
  2. Set your Discord Bot Token and OpenAI API Key as environment variables:
    export DISCORD_BOT_TOKEN=your_discord_bot_token
    export OPENAI_API_KEY=your_openai_api_key
  3. Run the bot:
    python run.py

Docker Setup

  1. Build the Docker image:
    docker build -t aidiscordbot .
  2. Run the Docker container:
    docker run -e DISCORD_BOT_TOKEN=your_token -e OPENAI_API_KEY=your_key aidiscordbot

Commands

  • !ticket [query]: Creates a new ticket with the given query and responds with a message.

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • The discord.py library for providing the framework for building this bot.
  • OpenAI for their GPT-3 API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.