Coder Social home page Coder Social logo

minhvudang / chatgpt-discord-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turingai-team/chatgpt-discord-bot

0.0 0.0 0.0 648 KB

A discord bot for interact with ChatGPT

Home Page: https://discord.com/api/oauth2/authorize?client_id=1053015370115588147&permissions=277025736768&scope=bot%20applications.commands

License: Apache License 2.0

TypeScript 100.00%

chatgpt-discord-bot's Introduction

chatgpt-bot

A discord bot for interact with ChatGPT ko-fi

Setup Guide

  1. Clone repository
    git clone https://github.com/MrlolDev/chatgpt-discord-bot.git
  1. Create supabase project

  2. Create supabase tables

Table: accounts Fields (name, dataType): (id,uuid), (created_at, timestamp), (email, text), (password, text), (abled, boolean), (totalMessages, numeric), (lastUse, numeric), (key, text) In this table it is only required the key(open ai key), abled(true), messages(0) and id property(random UUID).

Table: chatsonic Fields (name, dataType): (id,uuid), (created_at, timestamp), (key, text)

Table: conversations Fields (name, dataType): (id,uuid), (created_at, timestamp), (account, uuid, foreign key points to Account) , (conversation, jsonb), (lastMessage, numeric), (userId, text)

Table: cooldown Fields (name, dataType): (id,uuid), (created_at, timestamp), (userId, text), (command, text)

Table: results Fields (name, dataType): (id,uuid), (created_at, timestamp), (prompt, text), (provider, text), (result, jsonb), (uses, numeric), (guildId, text)

  1. Upload open ai accounts

  2. Install dependencies

npm install
  1. Create .env
TOKEN=Your discord bot token https://discord.dev
CLIENT_ID=Your discord bot id https://discord.dev
SUPABASE_KEY=Your supabase service role key https://app.supabase.com
SUPABASE_URL=Your supabase project url https://app.supabase.com
  1. Run the bot
npm start
  1. Running with auto reload(development mode)
npm run dev
  1. Updating code with changes.
npm run git

TO DO:

  • Embeds --> Future
  • Top.gg rewards --> Future
  • Uptime Robot alerts --> Future

chatgpt-discord-bot's People

Contributors

mrloldev 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.