discord-gpt-character v1.0.0
Discord Bot Character
This is a library for creating Discord bot characters using ChatGPT API with TypeScript and Discord.js.
Installation
You can install the library using npm:
npm install discord-bot-character
Usage
Here's an example usage of the library:
import { DiscordBot } from 'discord-bot-character';
import { discordConfig, chatGptConfig } from './utils/config';
const bot = new DiscordBot(discordConfig.token, chatGptConfig.apiUrl, chatGptConfig.apiKey); Make sure to replace the placeholders YOUR_DISCORD_BOT_TOKEN and YOUR_CHATGPT_API_KEY in the utils/config.ts file with your actual Discord bot token and ChatGPT API key, respectively.
API
DiscordBot constructor(token: string, apiUrl: string, apiKey: string)
Creates a new instance of the Discord bot character.
token: Discord bot token. apiUrl: ChatGPT API URL. apiKey: ChatGPT API key.
Contributing
Contributions are welcome! Please read the contributing guidelines first.
License
This library is licensed under the MIT License. See the LICENSE file for details.
1 year ago