The source code for the discord bot that automatically logs internal management polls.
If you would like to run to the bot yourself (why?), follow these steps:
1. Clone the project
git clone https://github.com/QwIT-Development/poll-bot.git
2. cd into the project folder
cd poll-bot
3. Add a dotenv file with your Discord bot token
On macOS / Linux:
echo "DISCORD_TOKEN=your_token_here" >> .envOn Windows (cmd):
echo DISCORD_TOKEN=your_token_here >> .envPowerShell:
'DISCORD_TOKEN=your_token_here' >> .env
4. Initialize the virtual environment
This is easier if you use
uv. If you're already usinguv, just runuv venv.Otherwise, run:
python3 -m venv .venv
5. Activate the virtual environment
On macOS / Linux:
source .venv/bin/activateOn Windows (cmd):
.venv\Scripts\activate.batPowerShell:
.venv\Scripts\Activate.ps1If you see an error about execution policy, run this in an administrator PowerShell once:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
6. Install required packages
If you use
uvlike a gigachad:uv pip install -r pyproject.tomlOtherwise:
python3 -m pip install -r pyproject.toml
7. Run the bot
python3 main.py
yippee ur done :D
stuck in the virtual environment? check step 5