-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The official TRMNL Discord Bot connects your community to the latest TRMNL resources, documentation, updates, and more. Use this wiki to learn about setup, configuration, features, and development practices.
Getting Started
Features Overview
Commands
Configuration
Development Guide
Support
Follow these steps to set up the TRMNL Discord Bot:
Python 3.11 or higher
Discord Bot Token (obtainable from the Discord Developer Portal)
Configuration Files
-
Clone the repository:
git clone https://github.com/usetrmnl/discord-bot.git cd discord-bot
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure the bot:
Copy
.env.template
to.env
and fill in theDISCORD_TOKEN
.Update
config.json
with command prefixes and other settings.
-
Run the bot:
python bot.py
The TRMNL Discord Bot offers the following capabilities:
Resource Access: Provides links to TRMNL documentation, frameworks, and tools.
Community Updates: Shares the latest blog posts and news from TRMNL.
DIY Guides: Offers guidance on custom setups and integrations.
Admin Tools: Includes commands for syncing and reloading documentation.
User Feedback: Collects feedback directly from Discord members.
Search Functionality: Allows users to search documentation with a simple command.
Here is a list of available commands:
Command | Description -- | -- /home | Access main TRMNL resources /docs | View documentation links /framework | Get framework documentation /news | See the latest TRMNL news /updates | View all blog posts and updates /privacy | Access the privacy policy /terms | View the terms of service /diy | Learn about DIY TRMNL options /search | Search TRMNL documentation /status | Show bot status and latency /feedback | Submit user feedback /support | Get support information /changelog | See recent bot updates /pipeline | View upcoming features and roadmapDISCORD_TOKEN: Your Discord Bot Token.
Command Prefix: Customize the prefix for hybrid commands.
Feedback Channel ID: Specify a channel for user feedback.
Manage documentation links, resources, and categories for bot responses.
Navigate to
src/bot/trmnl.py
.Create a new method in the
TRMNL
class, using the@app_commands.command
decorator.Implement the command logic, ensuring proper error handling and response formatting.
Edit
docs.json
to add or modify documentation categories and links.
-
Use
pytest
for testing:pytest
Tests are located in the
tests
directory.
If you encounter issues or have questions, join the TRMNL Discord Community for support.
Thank you for contributing to and using the TRMNL Discord Bot! Together, we make TRMNL accessible and efficient for all.