
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.
- Obtain an API Key. (
OPENAI_API_KEY
) - Create an Assistant and obtain an ID that starts with
asst..
. (OPENAI_ASSISTANT_ID
)
- 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
- SCOPES:
- Bot > Privileged Gateway Intents > MESSAGE CONTENT INTENT > (enable)
Refer to Discord Permissions for more details.
- Use the Install Link to add the bot to your desired Discord server.
- 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
- Set up Secrets Manager:
npm install
npm run cdk deploy ChatGptDiscordBotSecretStack
- Configure the created Secrets Manager with the necessary credentials.
{
"DISCORD_BOT_TOKEN": "...",
"OPENAI_API_KEY": "sk-...",
"OPENAI_ASSISTANT_ID": "asst_..."
}
- Deploy the BOT.
npm run cdk deploy ChatGptDiscordBotStack
For any questions or further assistance, contact @sola_vrc.