Duel Reminder
The Duel Reminder module automatically sends daily embeds with duel strategies for Dark War Survival. Each day of the week has its own template with a dedicated strategy.
Enabling the Module
- Dashboard → Your server → toggle Duel Reminder
- Click Edit and configure the channel and send time
- Save changes
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
channel_id | string / null | null | Channel for reminders (required) |
send_hour | number (0–23) | 8 | Send hour |
send_minute | number (0–59) | 0 | Send minute |
timezone_offset | number | 2 | Timezone offset (UTC+X) |
last_message_id | string / null | — | ID of last sent message (auto) |
templates | object / null | null | Custom templates (null = defaults) |
Dashboard — Configuration
The edit panel contains:
- Channel — dropdown with text channels
- Send Time — hour + minute fields
- Timezone — UTC offset (e.g., +2 for CEST)
- Templates — per-day template editing (optional)
How It Works
- Every minute the bot checks if the configured time has arrived
- If so and it hasn't been sent today:
- Deletes yesterday's message (to keep the channel clean)
- Builds an embed from the current day's template
- Sends the new message
- Saves the message ID (for deletion the next day)
Channel Cleanup
The bot automatically deletes the previous message before sending a new one — this way the channel always contains only the current day's strategy.
Templates
Templates are organized per day of the week:
{
"Monday": {
"content": "@everyone",
"embed": {
"title": "⚔️ Monday Strategy",
"description": "Today we fight with infantry...",
"color": "#E74C3C",
"image": "https://...",
"footer": { "text": "Good luck!" }
}
},
"Tuesday": { ... },
"Wednesday": { ... },
...
}
Default Templates
If templates in the configuration is null, the bot uses default templates from the duel_templates.json file.
Custom Templates
Through the dashboard, you can override templates for each day of the week with your own:
- Text above the embed (content)
- Embed title
- Description (strategy)
- Color
- Image
- Thumbnail
- Footer
Commands
/duel send
Manually sends today's reminder (Admin only).
Useful for:
- First test after configuration
- Re-sending if something went wrong
- Forcing an immediate send
/duel preview
Preview of today's template without sending to the channel (ephemeral).
Timezone
The bot uses the configured UTC offset to:
- Determine "today's" day of the week
- Check if the send time has arrived
Setting timezone_offset: 2 (UTC+2 / CEST) means that send_hour: 8 will send the message at 8:00 AM Polish summer time (6:00 UTC).
Listened Events
The module does not listen to Discord events — it works exclusively on a scheduled task (tasks.loop).
Scheduled Task
_daily_check— checks all servers with the module enabled every minute
Tips
- Set
send_hourto one hour before the typical duel time in the game - Use
content: "@everyone"in the template to ping the entire server - Set up a dedicated channel (e.g.,
#duel-strategy) — the bot maintains only one message there - Use images in templates — visual strategies are more readable
Use /duel preview to see what today's template looks like without sending to the channel. When you're satisfied, /duel send will send it immediately.
The module requires a configured channel_id. Without a channel, reminders will not be sent (but the bot won't report an error — it will simply skip the server).