posts "question of the day" to a discord webhook
TypeScript 80.9%
JavaScript 19.1%
21 1 0

Clone this repository

https://tangled.org/timtinkers.online/discord-qotd-webhook https://tangled.org/did:plc:o6xucog6fghiyrvp7pyqxcs3/discord-qotd-webhook
git@knot.tangled.wizardry.systems:timtinkers.online/discord-qotd-webhook git@knot.tangled.wizardry.systems:did:plc:o6xucog6fghiyrvp7pyqxcs3/discord-qotd-webhook

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

Discord Question of the Day#

A Deno cron job that fetches questions from a Google Sheets endpoint and posts them sequentially to Discord via webhook. Uses Deno KV for state management to track question progression.

Setup#

  1. Install Deno, git clone the project and run deno install to install dependencies.
  2. Create .env file for local development and fill in your values (see below)
  3. Deploy to Deno Deploy or run locally

Commands#

# Local testing (with optional date/index override)
deno task dev
deno task dev --d="2025-10-25" --i="12"

# Run locally with cron
deno task run

# Deploy to Deno Deploy
deno task deploy

Necessary Environment Variables#

  • SHEET_ENDPOINT - JSON endpoint URL (Google Sheets, etc.)
  • CRON_STRING - Cron schedule expression
  • DISCORD_WEBHOOK_URL - Discord webhook URL
  • SUGGESTION_FORM_URL - Form to suggest new questions
  • DENO_KV_DATABASE_ID - Deno Deploy KV database ID (for local testing)
  • DENO_KV_ACCESS_TOKEN - Deno Deploy KV access token (for local testing)

Idea by @meylemonade.bsky.social