codewithriza / SlotBot

Slot Bot is a Discord bot designed to streamline slot management in your server. It allows users to create slots for various purposes, such as selling items or offering services
MIT License
9 stars 9 forks source link
discord-py slot slotbot slots

Slot Bot

Description

CLICK HERE FOR TUTORIAL VIDEO Slot Bot is a Discord bot designed to streamline slot management in your server. It allows users to create slots for various purposes, such as selling items or offering services. The bot includes features like creating, renewing, holding, and unholding slots, as well as adding and removing users from slots.

[!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

Features

Usage

To use the bot, follow these steps:

  1. Create a Slot: Use the ,create command to create a new slot. Example: ,create @user 1 d category1 4 Slot.

  2. Add Users: Use the ,add command to add users to a slot. Example: ,add @user.

  3. Renew a Slot: Use the ,renew command to renew a slot with updated duration. Example: ,renew @user #channel 1 m/d his Slot.

  4. Hold a Slot: Use the ,hold command to temporarily hold a slot.

  5. Unhold a Slot: Use the ,unhold command to unhold a slot.

  6. Remove Users: Use the ,remove command to remove users from a slot. Example: ,remove @user.

  7. Ping Notification: Use the ,ping command to receive a notification in the slot channel. You can use ,ping everyone or ,ping @here to mention everyone or here respectively. Example: ,ping.

  8. Nuke Command: Use the ,nuke command to delete all messages in the slot channel if you have owner permissions. Example: ,nuke.

Installation

To install the bot, follow these steps:

  1. Clone the repository: git clone https://github.com/codewithriza/SlotBot.git
  2. Install dependencies: pip install -r requirements.txt
  3. Set up your configuration: Create a config.json file with your bot token, category ID, staff ID, etc. Make sure to keep your bot token private and secure.
  4. Replace token and other guild id, channel id, 2 category id in main.py
  5. 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

Contributing

Contributions are welcome! If you have any ideas or improvements, feel free to open an issue or submit a pull request.

Support

If you find this project useful, please consider giving it a star on GitHub! 🌟


Discord X YouTube