Skip to content

jonathonor/trialBot

Repository files navigation

Contributors Forks Stargazers Issues


Logo

TrialBot

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

About The Project

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!

(back to top)

Use Cases - Running TrialBot

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.

Installing

  • requirements :

    • node v16.11.1
  • example install :

  • To start regular sync bot

    • node register.js (this registers the /add command for your bot)
    • node trialbot-lowdb.js

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

About

A bot to give temporary access to a role on discord. It gives the ability to expire a users role after a set amount of time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published