- Keep threads active FOREVER
- ADD or REMOVE huge numbers of users in role to the thread
Create Slash Commands
The slash command get created when joining the server. So if you connect this with a bot
already in the server, just reinvite your bot without kicking it.
Otherwise use the code in joined.js
and change the event to bot mention or something what can be triggered manually
/keep_thread_active
You will get a slash command /keep_thread_active
with parameter YES or NO.
This command will keep your discord thread active by toggle the auto_archive_duration.
Type /keep_thread_active
in any thread.
Choose YES to enable the bot to reactivate your thread every night.
Choose NO to disable any action by the bot.

/add_role_to_thread
You will get a slash command /add_role_to_thread
with parameter
- role (roles of your server)
- action (ADD, REMOVE, DISABLE)
- mode (System, Mention, Combination)
action
if you select ADD, all Users in this role will be added to the thread immediately.
Also the bot checks every night if there is any user missing and add him.
if you select REMOVE, all Users in this role will be removed from the thread immediately.
Also the bot checks every night if there is any user in this role whos in the thread and remove him from the thread.
I don't know yet if the REMOVE function is useful but it work.
if you select DISABLE the bot stop working. This is useful when you want to add
users into the thread but do not want to keep the users in role in sync with the users in the thread.
mode
mode is only relevant for ADD users. The system method is slow and not useful for more than 30 users to add.
System will add the users via bot to the thread. Only 2 per second possible so use it only for few users.
Mention (recommend) will add users via mention but will not PING them. 50 Mentions per message. Message get updated every 0,5s and deleted after.
60 Secounds runtime = 900 Users to add in one run.
Smart Combination need SMART_THRESHOLD
to be set. If member to add is below threshold it use System otherwise it use Mention
This mode is useful to add a lot users in the beginning and keep less users in sync with that manual mode.
Security
Using this commands can be harmful for your server.
Use is therefore restricted by one or more STAFFROLE.
Requests used by this bot
1x when using the slash command
1x per day for keep_thread_active
( 0 AM / Berlin ) = 30x a month
1x per day for add_role_to_thread
( 0:15 AM / Berlin ) = 30x a month
i did the split up with two scheduler to handle as much possible threads within the maximum runtime.