Discord bot for setting up games in a small Valorant league I have with my friends.
- Map and side pick/ban system
python3.8.7 (as of the last commit on 2/6/21)pipvirtualenv
This section is only necessary once to add the bot to your server.
- Follow this setup guide. Be sure to save your bots token for later!
- Uncheck the "PUBLIC BOT" setting, unless you want other people to use the bot
- Enaable the "MESSAGE CONTENT INTENT" setting
- Follow this setup guide until you get to the Adding scopes and permissions section
- For the "BOT PERMISSIONS" section, add the following permissions: [] Send Messages [] Add Reactions [] Read Messages / View Channels
- Continue the the setup guide until you reach the "Running your app" section
- Clone this repo
- Run
[python -m venv env](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/)in the root folder (the top-levelsecond-strike-botone). This will create a newenvdirectory - Run the
activatescript in this newly created directory to create an isolated virtual development environment
- Windows:
.\env\Scripts\activate - Unix:
source env/bin/activate
- Run
pip install -r requirements.txt
- Create a file called
.envin the root folder - Add this line:
DISCORD_TOKEN=token_from_step_0.1_here - Add this line:
DISCORD_GUILD="Your Server Name Here"(with the quotes)
Branch per feature with codeowner reviews.
Linting: black <path/to/second_strike_bot>
With your virtual environment activated, simply run the bot.py file (python second-strike-bot\second_strike_bot\bot.py). You should see your bot come online. Keep in mind that you need to be running the script in order for the bot to function. AWS EC2 or a Raspberry Pi would let you run this 24/7.
All you need to do is send a /setup command in a text channel and follow the messages/instructions from there. Here's an example text/voice channel setup:
This project is licensed under the Apache License - see the LICENSE file for details

