A Discord bot that archives conversations between you and your partner in a private server, tracks shared links, and allows intelligent searching and analysis of past discussions using Claude AI. The bot can also import historical DM conversations from Discord's data export.
/query what tables did we like for the dining room?
/links list
/links search ikea
/project create name:Furniture description:Our furniture shopping journey
/project list
/import channel channel_id:123456789
/import dm
(generates upload link for DM history)Create a Discord application and bot at the Discord Developer Portal
Create a private server with just you and your partner
Invite the bot to your server with the following permissions:
Set up the environment variables in Val Town:
DISCORD_TOKEN
: Your Discord bot tokenDISCORD_APPLICATION_ID
: Your Discord application IDANTHROPIC_API_KEY
: Your Claude API keyVAL_TOWN_URL
: The URL of your Val Town deploymentRegister the bot commands by making a POST request to the /register
endpoint
There are two ways to import your conversation history:
/import dm
command to generate an upload link/import channel channel_id:YOUR_CHANNEL_ID
id
: Unique message IDchannel_id
: Discord channel IDuser_id
: Discord user IDcontent
: Message text contenttimestamp
: Unix timestamphas_links
: Boolean indicating if message contains linksis_command
: Boolean indicating if message is a commandid
: Auto-incrementing IDmessage_id
: Reference to message containing the linkurl
: Full URLdomain
: Domain nametimestamp
: Unix timestampcategory
: Optional category tagid
: Auto-incrementing IDname
: Project namedescription
: Optional project descriptioncreated_at
: Unix timestampis_active
: Boolean statusid
: Auto-incrementing IDname
: Topic namedescription
: Optional topic descriptioncreated_at
: Unix timestampThis bot uses: