Table of Contents
Discord User Pick is a simple Discord bot that randomly picks a user from a given list of members. It's useful for games or contests where you need to select a winner among a group of participants.
This bot requires Python 3.5, or higher and the following libraries:
- discord.py
-
Install Python 3.5 or higher: If you haven't already installed Python, download it from the official website and follow the installation instructions.
-
Install VSCode: If you haven't already installed VSCode, download it from the official website and install it.
-
Install discord.py library: we'll see how to do this in the Installation section.
- Clone this repository or download the script.
git clone https://github.com/andrenevesgomes/discord-user-pick.git
- Install the required libraries using pip:
pip install discord.py
- Create a new application and bot on the Discord Developer Portal.
- Invite the bot to your Discord server by generating an invite link on the Developer Portal.
- Copy the bot token and replace the
DISCORD_TOKEN
variable in thebot_config.env
with it. - Customize the command prefix and voice channel name in the script if desired.
- Run the script:
python bot.py
- Join a voice channel in the Discord server.
- Type the command in a text channel where the bot is present:
-pick @NameOfTheBot
- The bot will select a random member from the voice channel you are in and display their name in the text channel (remeber to giver the bot permissions).
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
DM me - @andreneves-gomes
Project Link: https://github.com/andrenevesgomes/discord-user-pick