discord-gpt-bot

1.0.3 • Public • Published

Patreon donate button npm Discord CodeLife

Discord GPT Bot

A discord bot that sends OpenAI generated messages to a channel whenever a specific user uses the /generate-prompt command

Table Of Contents

Support

Join my Masta Coders Discord server and come join a community of coders, investors and thinkers come join! CodeLife Join button

You can also support me via Patreon! Every donation helps us afford more time to create projects and classes for underserved youth!

Installation

Use the package manager npm to install the dependencies. Then copy the example .env file and fill in with appropriate values.

 git clone https://github.com/mastashake08/discord-gpt-bot.git
 npm install
 cp .env.example .env
 #set values for OpenAI and DISCORD APIs in .env
 DISCORD_TOKEN=
 DISCORD_CHANNEL_ID=
 DISCORD_CLIENT_ID=
 DISCORD_GUILD_ID=
 OPENAI_API_KEY=



Usage

node index.js

Docker

# On linux/amd64 architechture
docker run --platform linux/amd64 --env-file=<PATH TO .ENV> -d --name=<NAME> mastashake08/discord-gpt-bot

docker run  --env-file=<PATH TO .ENV> -d --name=<NAME> mastashake08/discord-gpt-bot:latest

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Package Sidebar

Install

npm i discord-gpt-bot

Weekly Downloads

0

Version

1.0.3

License

GPL3

Unpacked Size

58.8 kB

Total Files

15

Last publish

Collaborators

  • mastashake08