-
-
Notifications
You must be signed in to change notification settings - Fork 55
Installing Leveler
Fixator10 edited this page Jun 22, 2022
·
16 revisions
For Leveler, you will need MongoDB.
To install MongoDB for your OS, please refer to one of next manuals:
Note: Red had its own MongoDB config driver. Leveler is not related to this config driver, and works directly with MongoDB.
Alternatively, you can get hosted instance of MongoDB on MongoDB Cloud.
To use MongoDB Cloud: [p]
is your prefix
- Use command
[p]pipinstall dnspython
to install dependency that required for MongoDB cloud URLs connection. - Restart your bot.
- Get your URL:
- Press "Connect" on your created Cluster.
- Setup connection security, if you have not done this yet
- On "Choose a connection method" select "Connect with the mongo shell".
- Copy your URL from
Use this connection string in your application:
field- You need only
proto://
&domain.tld
, e.g.:mongodb+srv://cluster42.red13.mongodb.net
- You need only
- Use URL you copied as
host
setting:[p]levelerset host mongodb+srv://cluster42.red13.mongodb.net
- Don't forget to setup your credentials via
[p]levelerset credentials <login> <password>
- Don't forget to setup your credentials via
SciPy lib is used for auto-color feature, which allows set colors for elements of ranks/profile/etc images based on background images.
This is not required, but to use auto-color feature, you need to install scipy.
- Activate your bot's venv win | linux
-
Install SciPy:
python -m pip install -U numpy scipy
- Restart your bot
Now, we are ready to install Leveler itself.
[p]
is your prefix
- Load Red's "downloader" cog with
[p]load downloader
, if you haven't loaded it yet. - Use command
[p]repo add Fixator10-Cogs https://github.com/fixator10/Fixator10-Cogs V3
- Wait for download
- Use command
[p]cog install Fixator10-Cogs leveler
- Wait for installation
- Use command
[p]load leveler
- The cog now should be loaded, you can test it and see commands via
[p]help Leveler
case-sensitive
Seems like you have corrupted or incorrect pillow installation