This is a Discord Bot created to manage server for computer science students of the Faculty of Applied Informatics and Mathematics at the Warsaw University of Life Sciences (2021/2025).
Python version: 3.10.X
CREATE THE DISCORD SERVER
- On the left side of the Discord, click
+
to add a server - Select
Create your own
and skip the next question - You can name the server or add an icon
- Click on
create
- Enable
developer mode
in Discord (go to user settings and selectadvanced
category)
CREATE AND ADD A BOT TO SERVER
- Go to https://discord.com/developers/applications and click on
New Application
- Enter the name you want
- Choose
Bot
on the left side - Click on
Add Bot
and thenYes, do it
on the next page - Then turn on
Presence intent
,Server members intent
andMessage content intents
- Next to the bot icon, click
reset token
and copy the bot token for later - On the left side, choose
OAuth2
andURL Generator
- In
skopes
selectbot
, inbot permissions
chooseAdminstrator
- Copy and paste the link below into the search bar
- Choose your server
- Click on
continue
andauthorize
without unchecking theAdministrator
box - Pass the hCaptcha
START THE BOT
- Make sure you have the correct version of python installed :)
- Clone the repository
- Create a
.env
file in the root directory of the repository - Add this line to
.env
:BOT_TOKEN= /bot token copied in step 6 of previous topic/
- Initialize the virtual environment:
- Open the console in the bot folder
- Install virtualenv, if you don't have it - type
pip install virtualenv
in the console - Enter
virtualenv .venv
in the console - Enter
source .venv/bin/activate
in the console to activate virtualenv
- Install the requirement packages:
- Make sure the virtual environment is selected
- Type
pip install -r requirements.txt
in the console
- Enter
py main.py
in the console to run the bot.