Skip to content

InsanityCodeForge/ChatMind-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a Node.js application that creates a chat bot for Discord using Discord.js and OpenAI API. The bot can respond to messages in a specific channel and can also execute custom commands.

Dependencies

  • dotenv - loads environment variables from a .env file
  • discord.js - provides a powerful interface for interacting with the Discord API
  • openai - provides an API for accessing OpenAI's powerful AI models
  • chalk - provides terminal styling
  • ora - provides loading spinners
  • fs - provides file system access
  • path - provides path manipulation utilities

Setup

Before running the application, you will need to create a .env file and add your Discord bot token and OpenAI API key.

BOT_TOKEN=<your Discord bot token>
OPENAI_API_KEY=<your OpenAI API key> 

To install the necessary packages, run the following command:

npm install dotenv discord.js openai chalk ora fs path 

To start the bot, run the following command:

node index.js

About

this is a ai discord bot using ChatGPT to generate and respond to a chat message without a command. it also has a slash command handler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors