Sends messages via webhook to Discord channels on specified days.
ping-them requires a config.json
file to run.
webhooks
(object): Webhooks to run on. Each property is a URL of a webhook, and their values are objects:begin
(number): UNIX timestamp at which to start this scheduleevery
(number): How often this schedule repeats, in daysname
* (string): Username of the webhook. This can be overridden for each message.pings
(object): Messages to send. Each property is the 0-indexed number of the day in the repeating schedule. Those properties' values are objects:name
* (string): Username of the webhookmessage
(string): Message to sendusers
(array): Users to tag in the message
users
(object): Map of user names to user IDs. This is so that inwebhooks.<webhook>.pings.users
you can refer to users by name instead of ID.
node ping-them.js
should be run on a daily schedule.