1.6.1 • Published 5 months ago

michai v1.6.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

mich-gpt

screenshot

A small module for quick implemntation of OpenAI's Chat-GPT into Discord.JS. This is the first public version of the library. For bug reports or feature requests visit https://github.com/m1chtv/mich-gpt

This module requires an OpenAI API key. You can get one here


Installing

npm i mich-gpt

Example Usage

const { MichClient } = require('mich-gpt');

const chatgpt = new MichClient(
  "YOUR_OPENAI_API_KEY"
);

client.on("messageCreate", async (message) => {
  if (message.author.bot) return;
  if (message.channel.id === "CHANNEL_ID") {
    return await chatgpt.chatMessage(message);
  }
});