michai

1.6.1 • Public • Published

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);
  }
});

/michai/

    Package Sidebar

    Install

    npm i michai

    Weekly Downloads

    5

    Version

    1.6.1

    License

    ISC

    Unpacked Size

    4.66 kB

    Total Files

    4

    Last publish

    Collaborators

    • michtv