Passa al contenuto principale

Automatic Messages

Send automatic messages on a schedule - hourly, daily, or using custom cron expressions.

Automatic Messages
You can - with this module - send automatic messages
This module is open-source.
This module has 3 configuration files.
This module is being actively used on over 12.100 other servers on SCNX.
This module is included for free in every plan. Learn more about prices.

Features

  • Send automatic messages on an hourly basis, with optional hour filtering.
  • Send automatic messages on a daily basis, with optional filtering by day of the week or day of the month.
  • Schedule messages using cron expressions for full control over timing.
  • Support for plain text messages and rich embeds.
  • Configure multiple automatic messages, each sent to different channels and on different schedules.

Setup

  1. Enable the module on your server.
  2. Depending on your scheduling needs, open the configuration for one of the three schedule types:
    • Hourly - for messages sent every hour or at specific hours.
    • Daily - for messages sent every day or on specific days of the week/month.
    • Cronjob - for advanced scheduling using cron expressions.
  3. Create a new configuration element and set the channel, message, and any desired time restrictions.
  4. Make sure the bot has the View Channel, Send Messages, and Embed Links permissions in the target channel.

Usage

Once configured, the module runs automatically. Messages are sent based on the configured schedules without any user interaction required.

Hourly messages

Hourly messages are sent once per hour. You can restrict which hours the message is sent by specifying the allowed hours (0-23). If no hours are specified, the message will be sent every hour.

Daily messages

Daily messages are sent once per day. You can restrict which days the message is sent by specifying allowed week-days (0 = Sunday, 1 = Monday, ..., 6 = Saturday) and/or allowed days of the month (1-31). If no restrictions are set, the message will be sent every day.

Cron messages

For advanced scheduling, you can use cron expressions. This gives you full control over when messages are sent. The cron expression format follows the standard five-field format: minute hour day-of-month month day-of-week.

Configuration

Hourly

Open this configuration in your dashboard.

FieldDescription
ChannelThe channel in which the message should be sent.
MessageThe message content to send. Supports embeds.
Limit hours toIf one or more hours (0-23) are set, the message will only be sent during those hours. Leave empty to send every hour.

Daily

Open this configuration in your dashboard.

FieldDescription
ChannelThe channel in which the message should be sent.
MessageThe message content to send. Supports embeds.
Limit Week-Days toIf one or more values are set (0 = Sunday, 6 = Saturday), the message will only be sent on those days of the week.
Limit days toIf one or more values are set (1-31), the message will only be sent on those days of the month.

Cronjob (advanced)

Open this configuration in your dashboard.

FieldDescription
ChannelThe channel in which the message should be sent.
MessageThe message content to send. Supports embeds.
ExpressionA cron expression defining when the message should be sent. Format: minute hour day-of-month month day-of-week.

Troubleshooting

  • Messages are not being sent: Make sure the bot has "View Channel", "Send Messages", and "Embed Links" permissions in the target channel. Also verify that the channel ID in the configuration is correct.
  • Messages are sent at unexpected times: The bot uses the server's timezone. Double-check your hour, day, or cron expression values. For hourly messages, hours are in 24-hour format (0-23).
  • Cron expression is not working: Ensure the cron expression follows the standard five-field format. For example, 0 9 * * 1-5 sends a message at 9:00 AM on weekdays.