Skip to main content

Code

agent_with_user_memory.py

Usage

1

Set up your virtual environment

2

Configure the Discord bot

Enable the privileged Message Content Intent in the Discord Developer Portal. Invite the bot with View Channels, Send Messages, Read Message History, Create Public Threads, and Send Messages in Threads permissions.
3

Set your API keys

4

Install dependencies

5

Run Agent

Save the code above as agent_with_user_memory.py, then run: