Need private packages and team management tools?Check out npm Teams »

on-this-day-webhook

2.0.8 • Public • Published

On this day... webhook

This program scrapes the current date's On this day... information from Wikipedia and pushes it to a webhook of your choice.

Right now, it only supports Discord webhooks.

Usage

$ npm install -g on-this-day-webhook
$ on-this-day-webhook discord https://discordapp.com/api/webhooks/...

Setting it up to run daily

Step 1: Create your Webhook

Open your server's Webhook settings

discord server webhooks

Click Create Webhook and configure it according to your wishes

discord edit webhook

If you need an image for the avatar, here's a pre-fitted and resized image you can use.

Copy the Webhook URL when you're done.

Step 2: Run it daily

I personally use a crontab to run it at 16:00 every day. Here's how it looks:

0 16 * * * /home/nixx/.npm-global/bin/on-this-day-webhook discord https://discordapp.com/api/webhooks/...

Keywords

none

Install

npm i on-this-day-webhook

DownloadsWeekly Downloads

2

Version

2.0.8

License

WTFPL

Unpacked Size

12.5 kB

Total Files

10

Last publish

Collaborators

  • avatar