The official Discord bot for the TRMNL community. This bot provides easy access to TRMNL documentation, resources, and updates directly within Discord.
- Access to TRMNL documentation and resources
- Latest news and updates about TRMNL
- DIY TRMNL guides and information
- Privacy policy and terms of service information
- Framework documentation access
- Python 3.11 or higher
- A Discord Bot Token
- Discord Developer Application access
- Clone this repository:
git clone https://github.com/usetrmnl/discord-bot.git
cd discord-bot
- Create and configure environment variables:
- Copy
.env.template
to.env
- Add your Discord bot token:
- Copy
DISCORD_TOKEN=your_bot_token_here
- Configure
config.json
:- Set your desired command prefix
- Add your bot's invite link
- Create and activate a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install required packages:
pip install -r requirements.txt
python bot.py
/home
- Main TRMNL resources/docs
- Documentation links/framework
- Framework documentation/news
- Latest updates/updates
- All blog posts/privacy
- Privacy policy/terms
- Terms of service/diy
- DIY TRMNL information
Commands are managed in src/bot/trmnl.py
. Each command is implemented as a slash command using Discord.py's hybrid command system.
Resource links and documentation content are managed in docs.json
. Update this file to modify command responses.
Need help? Join the TRMNL Discord Community
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to your branch
- Create a Pull Request
This project is proprietary software owned by TRMNL. All rights reserved.