Letter Box is an anonymous letter and reply system built for Discord, created by the Online Safety team. It empowers users to submit letters anonymously and receive supportive responses — all while keeping identities strictly confidential.
-
📩 Anonymous Letter Submission
Users submit letters privately via modals. -
💬 Admin-Only Replies
Admins can send one anonymous reply per letter, delivered via DM. -
🔒 Privacy by Design
No user identities are stored or displayed. -
📡 Channel Embeds
Letters and replies are published in a configured channel with dynamically updated embeds. -
🧠 AI Reply Support (Coming Soon)
Optional integration with OpenAI to generate helpful replies automatically. -
📊 Insights
Track totals, daily submissions, replies, and flags in real time with insight channels.
git clone https://github.com/OnlineSafetyOrg/letter-box.git
cd letter-boxnpm installCreate a .env file and configure it with your bot and database credentials:
# Discord Bot Credentials
CLIENT_TOKEN=""
CLIENT_ID=""
CLIENT_SECRET=""
# Letter System Configuration
LETTER_GUILD_ID=""
LETTER_CHANNEL_ID=""
# Insights Channel IDs (Optional)
TOTAL_LETTERS_CHANNEL_ID=""
TODAY_LETTERS_CHANNEL_ID=""
REPLIED_LETTERS_CHANNEL_ID=""
PENDING_LETTERS_CHANNEL_ID=""
FLAGGED_LETTERS_CHANNEL_ID=""
# Database
DATABASE_URL=""npx prisma migrate dev --name initMake sure your bot has the following permissions in your server:
Read MessagesSend MessagesManage Messages(for editing embeds)Send DMs(for private replies)
- Language: TypeScript
- Framework: Discord.js v14
- Database ORM: Prisma
- Database: MongoDB
- AI Integration: OpenAI (coming soon)
We welcome contributions! Feel free to open issues or submit pull requests if you have suggestions or want to improve the project.
Join our support and development community on Discord:
Online Safety builds tools that protect Discord users by encouraging safe, private, and mentally supportive communication.
This project is licensed under the GNU GPL v3.0.