Giter VIP home page Giter VIP logo

discord-gpt's Introduction

Discord GPT Bot

To create a Discord GPT bot.

Installation

To install the bot, you need to follow these steps:

  1. Clone this repository on your local machine: git clone https://github.com/karhal/discord-gpt.git.
  2. Navigate to the cloned repository folder: cd discord-gpt.
  3. Install the project dependencies by running: composer install.
  4. Make sure you have PHP version > 7.4 installed on your machine.
  5. Obtain an API key from OpenAI. You can sign up and get a free key here.
  6. Obtain a Discord bot token. You can create a bot and get a token by following the instructions here.
  7. copy/paste the config.override.yaml.dist file into config.override.yaml.
  8. Edit the config.override.yaml file to personalize the bot settings (see the "Configuration" section below).

Configuration

The config.override.yaml file contains the configuration settings for the bot. You can personalize the following parameters:

discord.token

Your Discord bot token. This token is required for the bot to connect to Discord.

openai.key

Your OpenAI API key. This key is required for the bot to interact with OpenAI's GPT models.

openai.config.model

The OpenAI model to use.

openai.config.temperature

The randomness of the bot's responses. Higher temperature values result in more creative responses, but lower quality.

openai.botExternalName

The name of the bot on Discord that users will see.

app.slowModeTime

The minimum number of seconds that the bot will wait before responding to the same user again.

app.reactionWords

A list of words that will trigger the bot to respond in the chat.

Usage

To use the bot, simply run the command php src/bot.php in the project folder. The bot will connect to Discord and start listening to the chat. You can then start chatting with the bot and it will respond based on the settings you defined in the config.override.yaml file.

Contributing

If you encounter any issues or have suggestions for improvement, please feel free to submit a pull request or open an issue on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

discord-gpt's People

Contributors

karhal avatar renovate[bot] avatar

Stargazers

 avatar Rafael Martins Ganzer avatar

Watchers

 avatar

discord-gpt's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency phpunit/phpunit to v11

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • team-reflex/discord-php ^7.3
  • symfony/yaml ^6.2
  • symfony/console ^6.2
  • orhanerday/open-ai ^4.0
  • monolog/monolog ^3.2
  • phpunit/phpunit ^10
github-actions
.github/workflows/github-actions.yml
  • actions/checkout v3
  • actions/setup-node v3
  • codecov/codecov-action v3

  • Check this box to trigger a request for Renovate to run again on this repository

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.