A python application to help manage guild members and their gear score for Black Desert Online. This specific bot is made for Sazerac guild but can be adjusted for use with any other guild.
- Python 3.6+
- Mongodb
- discord.py
This project is best ran in a virtual environment. You can use pyvenv, which comes with python 3 and greater. The virtual enviroment lets you run different versions of python and packages from other projects.
First install python3+ on your machine which should come with pip. If not, download from link provided.
python3 -m venv env
- Create a virtual environment in the env foldersource env/bin/activate
- Load the environmentpip install -r requirements.txt
- Install dependenciesdeactivate
- Unloads the environment
Note - Most documentation is for unix systems. Differences between windows and unix are: env\Scripts\
instead of env/bin/
and libraries go in env\Lib\
rather than env/lib/
)
First install python3+ on your machine and then download and install pip. Then from the root of the project run:
pip install virtualenv
- Install virtualenv if not already done soCreate a virtual environment in the venv foldervirtualenv venv
- This creates will create a series of directories and scriptsvenv/Scripts/activate
- Load the enviroment (There should be a (venv) before the current directory path namepip install -r requirements.txt
- Install dependenciesdeactivate
- Unloads the environment
Once your dependencies are installed, there are a couple of steps you need to do before running.
- create a
config.ini
file inside of the main directory - Setup config file like the example below:
[auth]
token = ... #This is where you put your bot token that you get from discord
token2 = ...
token3 = ...
[db]
name = gsbot
port = 27017
collection = gsdata
- Have an instance of mongodb running. The bot, as it stands, is configured to connect to a localhost instance of mongo on port 27017. If you would like different configurations, make sure you change the config file accordingly.
A python application using discord.py