Skip to content

solavrc/chappy

Repository files navigation

Chappy - Discord AI Chat BOT

image

Install Here

Chappy is a Discord AI chat bot designed to explore how people interact with AI. It is free to use, but please note that all conversations are recorded and analyzed for research purposes. The availability of this edition is subject to change without notice. You can also self-host this bot.

Self-Hosting

OpenAI

  1. Obtain an API Key. (OPENAI_API_KEY)
  2. Create an Assistant and obtain an ID that starts with asst... (OPENAI_ASSISTANT_ID)

Discord

  1. Create an Application and configure it as follows:
  • Installation >
    • Authorization Methods: Guild Install
    • Default Install Settings > Guild Install
      • SCOPES: applications.commands (default), bot
      • PERMISSIONS: Add Reactions, Attach Files, Create Public Threads, Embed Links, Manage Messages, Manage Threads, Read Message History, Send Messages, Send Messages in Threads
  • Bot > Privileged Gateway Intents > MESSAGE CONTENT INTENT > (enable)

Refer to Discord Permissions for more details.

  1. Use the Install Link to add the bot to your desired Discord server.
  2. Obtain the Bot TOKEN (DISCORD_BOT_TOKEN) from the Bot settings.

With these settings, you can confirm the bot is operational by running the following commands:

export DISCORD_BOT_TOKEN='...'
export OPENAI_API_KEY='sk-...'
export OPENAI_ASSISTANT_ID='asst_...'
npm install
npx tsx src/index.ts

AWS

  1. Set up Secrets Manager:
npm install
npm run cdk deploy ChatGptDiscordBotSecretStack
  1. Configure the created Secrets Manager with the necessary credentials.
{
  "DISCORD_BOT_TOKEN": "...",
  "OPENAI_API_KEY": "sk-...",
  "OPENAI_ASSISTANT_ID": "asst_..."
}
  1. Deploy the BOT.
npm run cdk deploy ChatGptDiscordBotStack

For any questions or further assistance, contact @sola_vrc.

About

ChatGPT for Discord Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published