Efficient123
DIAdiscord.js - Imagine an app
•Created by Efficient123 on 5/22/2024 in #djs-questions
How to remove a bot after a given time(days).
so I'm making a little bot called "Prison". All it does is adds a command /jail which takes two arguments, username and time(days). I want the user to get the jailed role whenever I run the command and it automatically gets removed after the time given. I'm fairly new to discord.js.
I tried doing a setInterval but... It's very self explanatory why it didn't worked, because I can't track the time of however many different users with one setInterval.
7 replies