Giter VIP home page Giter VIP logo

discord-bot-ai's Introduction

Discord Bot AI

An interface between a Discord Server and OpenAi's ChatCompletions Api.

This is a meant to be an extension of Chat GPT into Discord, with a couple of customization features:

  • Ability to activate /channel Discord Bot Ai in a Channel
activate_channel.mov
  • Ability to set a custom system prompt /instruct within each channel.
instruct.-.HD.720p.mov
  • Ability to clear chat history /reset-messages with Discord Bot Ai.
reset-messages.-.HD.1080p.mov
  • Ability to upload file(s) and provide instructions for evaluating each file.
file-upload.-.HD.720p.mov
  • Ability to interrupt Discord Bot Ai
interupt.-.HD.1080p.mov

Installation

Pre-requisite

  1. Create a Discord app
  2. Openai API Key

Getting Started

  1. npm i
  2. Create .env file at root of project with entries for:
    TOKEN=your-discord-token
    CLIENT_ID=your-discord-app-client-id
    GUILD_ID=the-discord-server-where-youve-invited-your-app
    OPENAI_API_KEY=your-openai-api-key
  3. Create database via npm run knex:migrate:latest
  4. Deploy slash commands to your server via npm run deploy-commands
  5. Run app via npm start

Development

Follow Installation instructions.

Note

VSCode: Debug by navigating to package.json and click โ–ท Debug text above scripts: Select start:dev and VSCode will run script and attach debugger.

Testing

Run npm test

Note

VSCode: Debug tests via Jest Extension.

discord-bot-ai's People

Contributors

dependabot[bot] avatar edelauna avatar

Stargazers

Tim Kersey avatar 6 avatar

Watchers

Kostas Georgiou avatar  avatar  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.