Welcome to the Chess Daily Puzzle App, a Go-powered application designed to bring the excitement of daily chess puzzles from Lichess directly to your Mattermost channels. If you're passionate about chess or simply want to challenge your team or community with daily brain teasers, this app is for you.
Key Features:
- Stay Engaged: Solve a new chess puzzle every day to keep your mind sharp.
- Team Building: Share chess puzzles with your team, fostering friendly competition and stimulating problem-solving discussions.
- Continuous Learning: Enhance your chess skills by practicing puzzles consistently.
Before diving into the chess challenges, ensure you have your Mattermost Webhook URL ready. If you haven't set up an incoming webhook yet, follow these simple steps:
- Create an incoming webhook. You can find step-by-step instructions here.
- Once created, copy the generated webhook URL.
Now, let's configure the app to connect with your Mattermost channel:
- Begin by cloning this repository to your local machine.
- Locate the
.env.example
file in the project's root directory and rename it to.env
. - Open the
.env
file and replace theMATTERMOST_WEBHOOK_URL
value (your_webhook_url_here
) with the actual Mattermost webhook URL you copied earlier.
The app's appearance can be customized according to your preferences. In the internal/usecases/presentation/config.go
file, you can configure:
- Username: Choose a username that will be displayed when the app sends messages.
- Message: Define the message template as you see fit.
- IconURL: Set the URL for the app's icon or avatar.
Modify these values to personalize the way the app appears when delivering puzzles to your Mattermost channel.
Getting started is straightforward:
-
Simple installation:
make install
The App fetches a daily chess puzzle and sends it to the configured Mattermost channel using the provided webhook URL at 11:11 AM on Monday, Wednesday and Friday.
However, you could configure any kind of schedule allowed by the crontab.
-
Set up your debug URL:
MATTERMOST_WEBHOOK_URL_DEBUG = "your_webhook_url_here_for_debug"
-
Build and run the application:
make run-debug
-
To remove the App:
make uninstall
Enjoy the daily chess challenges and let the strategic thinking begin!