GithubHelp home page GithubHelp logo

kav-k / gpt-discord-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itzarshia/gpt-discord-bot

0.0 1.0 0.0 697 KB

๐Ÿง  Example Discord bot written in JavaScript that uses `text-davinci-003`, `Dall.E 2`, and `text-moderation-004` models with many features!

License: MIT License

JavaScript 100.00%

gpt-discord-bot's Introduction

Chat GPT Discord Bot

GPT Discord Bot is the original Discord AI bot written in JavaScript, using the Discord.js V14 library powered by OpenAI's models. It has different features such as answering to all of your questions or draw your imaginations and even translate your prompts from any language to any other language you want and also an configurable Auto Moderation system powered by AI which watch all of your server messages (if you want, you can turn it off/on) and report flagged messages to Admins and they can moderate it and other features which you can see example in Screenshots!

๐Ÿšง Requirements

  1. Discord Bot Token Guide
    1.1. Enable "Message Content Intent" and "Server Members Intent" in Discord Developer Portal
  2. OpenAI API Key
  3. Node.js 16.9.0 or higher

๐Ÿš€ Getting Started

โš™๏ธ Configuration

Go to config.json in configs folder and fill out the values:

{
    "Prefix": "Put anything you want as prefix",
    "MainColor": "Put any #HexCode you want for embeds color",
    "ErrorColor": "Put any #HexCode you want for embeds color when there is an error",
    "ClientID": "Put your Bot ID/Client ID here",
    "Token": "Put your Bot Token here",
    "OpenAIapiKey": "Put your Open AI API Key here"
}

โš ๏ธ Note: Never commit or share your token publicly โš ๏ธ

and if you want to use moderation model fill and config moderation.js in configs folder (Information on how to configure it is available in the file itself)

๐Ÿง  installation

Open your terminal and install required packages with

npm install

After installation finishes run node register.js to deploy slash commands and then run node index.js in terminal to start the bot.

๐Ÿ’ซ Features

/Ask / !Ask : Answers your questions!

/Imagine / !Imagine : Draw your imaginations!

/Translate / !Translate : Translate your texts in any language to any language you want

Auto Moderation

๐Ÿ“ธ Screenshots

Ask imagine Translate Auto Mod

โค๏ธ Donations

You can support me by donating if you like the project!

Only available for Iranians :(

Made with โค๏ธ and JavaScript, Don't Forget to โญ

gpt-discord-bot's People

Contributors

itzarshia avatar

Watchers

 avatar

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.