- Create slots with specified durations and categories
- Renew slots with updated durations
- Hold slots temporarily
- Unhold slots when ready
- Add and remove users from slots
- Set slot rules and guidelines
- Receive notifications for slot activities
To use the bot, follow these steps:
-
Create a Slot: Use the
,createcommand to create a new slot. Example:,create @user 1 d category1 4 Slot. -
Add Users: Use the
,addcommand to add users to a slot. Example:,add @user. -
Renew a Slot: Use the
,renewcommand to renew a slot with updated duration. Example:,renew @user #channel 1 m/d his Slot. -
Hold a Slot: Use the
,holdcommand to temporarily hold a slot. -
Unhold a Slot: Use the
,unholdcommand to unhold a slot. -
Remove Users: Use the
,removecommand to remove users from a slot. Example:,remove @user. -
Ping Notification: Use the
,pingcommand to receive a notification in the slot channel. You can use,ping everyoneor,ping @hereto mention everyone or here respectively. Example:,ping. -
Nuke Command: Use the
,nukecommand to delete all messages in the slot channel if you have owner permissions. Example:,nuke.
Note
The Discord bot needs to have admin permissions and be positioned at the top of the role hierarchy, above the buyers in order to create a slot
To install the bot, follow these steps:
- Clone the repository:
git clone https://github.com/codewithriza/SlotBot.git - Install dependencies:
pip install -r requirements.txt - Set up your configuration: Create a
config.jsonfile with your bot token, category ID, staff ID, etc. Make sure to keep your bot token private and secure. - Replace token and other guild id, channel id, 2 category id in
main.py - Run the bot:
python3 main.py
Important
Ensure that your bot token is kept private and setup in config.json along with category id staff id etc create separate category for 1 and 2 and read through the code to understand
Contributions are welcome! If you have any ideas or improvements, feel free to open an issue or submit a pull request.(or) update us in
If you find this project useful, please consider giving it a star on GitHub! 🌟