A bot that allows you to give roles to users on your Discord server for a certain amount of time.
Explore the docs »
My Discord
·
Report Bug
·
Request Feature
·
My Website
This is a bot that allows you to grant users temporary access to different roles in your Discord servers. The bot is very helpful for server owners who have roles that allow different channels based on certain subscriptions or packages the users pay for. I would highly recommend checking out my website where I dive in deep to how the bot works, what all it does, and even share some walkthrough videos of it in action. Thanks for stopping by and reach out to me on Discord if you'd like to connect!
Manual Operations
- Adding a role for a set amount of time /add @user @role (amount of time) (minutes/hours/days)
- You can use the /add slash command to easily add a a role temporarily to a user in your server. This command must be run from a guild, and takes
- Note - if the user already has an expiration date for that role in the future, this will extend that date
Automatic Operations
- The bot will check for users roles that have expired every hour and remove them.
More functionality (coming soon)
- You can designate the bot to automatically assign a role to users upon them joining your server for a set amount of time.
- example: You have used the bots /set-role-on-join command for "My cool Role" to be added when new users join the guild and the time for the role to be one hour. Jim then joins your server and the bot grants him the role named "My cool Role". After one hour, the role "My cool Role" is automatically removed from Jim.
- You can designate the bot to automatically assign a role to a user for a certain time period.
- example: You have used the bots /set-role-for-period command to assign the role "My cool Role" to Jim for an event weekend. The dates of the weekend are September 3rd at noon until September 5th at midnight. The bot will automatically assign the role on September 3rd at noon and remove the role on September 5th at midnight.
-
requirements :
- node v16.11.1
-
example install :
- cd /Documents
- git clone https://github.com/jonathonor/trialbot.git
- cd trialbot
- npm install
- follow the config steps at TrialBot Documentation to populate the config.json file before executing the next two commands
-
To start regular sync bot
- node register.js (this registers the /add command for your bot)
- node trialbot-lowdb.js
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request