A Discord bot for listing active threads and announcing when threads reopen.
readme.md

ThreadPoster #

A small Discord bot with two features:

  • /activethreads - a command to post a list of active threads in the current channel.

  • Automatically posts a message in a thread's parent channel when it re-opens.

    This feature uses gateway events to post a message immediately, with a fallback to periodic polling because thread status events are unreliable. Polling happens every 15 minutes, so it may take up to 15 minutes after a thread is unarchived before you see the message.

    This feature only works for threads where the bot has permissions to see the parent channel.

I have a hosted version, but until I'm more confident in its stability I'm not sharing that publicly.

Setup #

  1. Install Deno.

  2. Set up an application in the Discord developer portal. Get a bot token and store it somewhere safe.

  3. With the bot token as the environment variable DISCORD_TOKEN:

    1. Run deno task update-commands.
    2. Run deno task run.