3 unstable releases
0.2.1 | Mar 15, 2022 |
---|---|
0.2.0 | Mar 15, 2022 |
0.1.0 | Mar 11, 2022 |
#928 in Concurrency
13KB
104 lines
ThreadReviver
A Discord bot to revive any archived threads (to counter Discord's auto-archive function).
Environment variables
THREADREVIVER_DISCORD_TOKEN
: a bot token from the Discord Developer Portal
Discord permissions
The bot requires the MANAGE_THREADS
Discord permission to operate. Any channels it does not have this permission for will not be revivable by the bot, and these will be printed to STDERR
at runtime to assist with permissions management.
Note that version 0.1.0
required SEND_MESSAGES_IN_THREADS
instead, so your bot may no longer be setup correctly -- do check! (This permission is also no longer required.)
Usage instructions
- Install the bot:
cargo install thread_reviver
- Alternatively, build it yourself with
cargo build
- Alternatively, build it yourself with
- Create a bot on the Discord Developer Portal
- Set the
THREADREVIVER_DISCORD_TOKEN
environment variable - Invite the bot to your server
- You'll need to create an invitation link for this; see Discord's documentation.
- Run the bot.
Dependencies
~20–33MB
~600K SLoC