Coder Social home page Coder Social logo

agcrisbp / ad-gpt3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xe2d0/otbot

0.0 0.0 0.0 5.44 MB

๐Ÿค– One-Time invite link generator for your Discord server with webpage, which supports Discord AI chatbot powered by OpenAI language model called GPT-3.5.

Home Page: https://top.gg/bot/1200362228440895528/

License: MIT License

JavaScript 47.68% HTML 10.21% CSS 39.37% Dockerfile 2.74%
projects discord-bot gpt-3

ad-gpt3's Introduction

GitHub Clones GitHub Clones

One-Time invite link generator for your Discord server with webpage, which supports Discord AI chatbot powered by OpenAI language model called GPT-3.5.

Buy Me A Coffee Saweria Github Sponsor

Live Demo:

You can check WEST GAME ๅ Server.


Features

  • Self commands for bot owners only to retrieve the logs, and clean the logs.
  • Welcome message. Check bot.js line 243.
  • Currently, I have no ideas.

Self Commands for Bot Owners

  • !help: You know what is it for.
  • !log: Retrieve the GPT-3.5 logs.
  • !clean: Clean all bot logs.

Create Discord Application

  • Go to the Discord Developer Portal and create a new application.

  • Navigate to the "Bot" tab and click "Add Bot" to create a bot user.

  • Under the "Bot" tab, you'll find the token. Copy this token; .env.

  • Still under the "Bot" tab, set the Authorization Flow and Privileged Gateway Intents to this:

  • Now, go to the "OAuth2" tab, in the "OAuth2 URL Generator" section, select the "bot" scope and as whatever you want.

  • Copy the generated URL and paste it into your browser. This will allow you to invite the bot to your server.


Create an OpenAI APi Key

  • Visit the OpenAI website and create an account. Follow the registration process to set up your account.
  • Navigate to API Section of the OpenAI platform.
  • Locate the API key generation section on the OpenAI platform and follow the instructions to generate your key and copy to; .env.

Installation

git clone https://github.com/agcrisbp/AD-GPT3
  • Install the dependencies:
npm install
  • Preview
node bot.js

Setup Server Invitation Web

  • Go to your Server Settings > Widget > Copy JSON API.

Widget


Deploy To https://fly.io

flyctl auth login
  • Launch the app:
flyctl launch
? Would you like to copy its configuration to the new app? Yes
? Do you want to tweak these settings before proceeding? Yes
  • Set the app name based on your app = "YourAppName" in fly.toml.

  • Deploy:

flyctl deploy

Next time you want to redeploy your web after editing something, just use flyctl deploy.


fly.io will run 2 machines automatically, if it makes run your bot into 2 at once, stop & destroy one of them:

flyctl machine stop
  • Destroy:
flyctl machine destroy

Credits:

ad-gpt3's People

Contributors

agcrisbp avatar 0xe2d0 avatar actions-user 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.