Skip to content

config.json

Codemonkey51 edited this page Oct 14, 2020 · 1 revision

This is a file that lives in the config folder, it handles a lot of config to make setup easier

The keys you can have are:

host
port
dotenv
prefix
client_id
roles (coming soon)

different keys

host: This is normally localhost or 127.0.0.1, or 0.0.0.0 on repl

port: Any port you want (port 80 needs sudo), on Repl.it all ports will work, but if you're locally hosting you probably want 8080 so the user doesn't have to specify the port

dotenv: Whether you want to use python-dotenv to load the environment variables. This isn't necessary on Repl.it, but is if you're hosting elsewhere.

prefix: The prefix that goes before all the Discord commands

client_id: The client ID of your discord app, this defaults to the repldex's normal client id, but to get discord auth working correctly you will want to se this

coming soon

roles (coming soon): wether to use local config files (in config/) for user roles or to store them on the db, this will take some extra setup time

Clone this wiki locally