Skip to main content

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

  1. Dashboard → Your server → toggle Duel Reminder
  2. Click Edit and configure the channel and send time
  3. Save changes

Configuration

OptionTypeDefaultDescription
channel_idstring / nullnullChannel for reminders (required)
send_hournumber (0–23)8Send hour
send_minutenumber (0–59)0Send minute
timezone_offsetnumber2Timezone offset (UTC+X)
last_message_idstring / nullID of last sent message (auto)
templatesobject / nullnullCustom 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

  1. Every minute the bot checks if the configured time has arrived
  2. 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
Example

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

Best practices
  • Set send_hour to 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
Testing

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.

warning

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).