- TypeScript 100%
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 #
-
Set up an application in the Discord developer portal. Get a bot token and store it somewhere safe.
-
With the bot token as the environment variable
DISCORD_TOKEN:- Run
deno task update-commands. - Run
deno task run.
- Run