Skip to content
/ GCPbot Public

GCP DISCORD BOT CHAT GPT NODE JS

Notifications You must be signed in to change notification settings

fatmuh/GCPbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6cf5012 · Dec 15, 2022

History

1 Commit
Dec 15, 2022
Dec 15, 2022
Dec 15, 2022
Dec 15, 2022
Dec 15, 2022
Dec 15, 2022
Dec 15, 2022

Repository files navigation

GCP DISCORD BOT CHAT GPT

Demo, join here : https://discord.gg/Jsh9aaaTz4

Configuration

Before configuring you must first register with openai to get an api key, if you already have an api key, do the steps below.

Rename file env to .env, and change this with your own api dan discord token

DISCORD_BOT_TOKEN=YOUR_DISCORD_TOKEN
DISCORD_CLIENT_ID=YOUR_APP_ID_DISCORD
OPENAI_API_KEY=YOUR_API_OPENAI
TEXT_LENGTH = 500
CMD_ASK = gcpask
CMD_IMG = gcpimg
  • TEXT_LENGTH -> function to determine the word length of the ChatGPT results, you can change it with what you want
  • CMD_ASK -> change it with your command for asking text
  • CMD_IMG -> change it with your command for generate image

If you want regenerate dependencies, just run

npm install

Output

'gcpask' 'gcpimg'

About

GCP DISCORD BOT CHAT GPT NODE JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published